简体中文
Telegram

讨论串 siyamak:

7 条消息 · –
已
siyamak: import urllib from bs4 import BeautifulSoup x = urllib.urlopen("https://www.#.com").read() y=BeatifulSoup(x , "html.parser" ) for link in y.find_all("a"): z=link.get("href") print(z) print("≠=================≠) کسی میتونه بگه چرا Urlopen ارور attr داره؟
  1. T
    اگر از پایتون 3 استفاده میکنید این خط رو : x = urllib.urlopen("https://www.#.com").read() به خط زیر تغییر بدید: x = urllib.request.urlopen("https://www.#.com").read() یک دابل کوت (") هم در خط آخر در دستور پرینت تایپ نشده
      1. T
        این کدی هست که برای من کار میکنه import urllib from bs4 import BeautifulSoup x = urllib.request.urlopen("https://www.google.com").read() y = BeautifulSoup(x, "html.parser") for link in y.find_all("a"): z = link.get("href") print(z) print("≠=================≠")
          1. T
            链接
            点击显示
            آره واقعا کار میکنه !!! خروجیش: https://www.google.com/imghp?hl=en&tab=wi ≠=================≠ https://maps.google.com/maps?hl=en&tab=wl ≠=================≠ https://play.google.com/?hl=en&tab=w8 ≠=================≠ https://www.youtube.com/?gl=US&tab=w1 ≠=================≠ https://news.google.com/nwshp?hl=en&tab=wn ≠=================≠ https://mail.google.com/mail/?tab=wm ≠=================≠ https://drive.google.com/?tab=wo ≠=================≠ https://www.google.com/intl/en/about/products?tab=wh ≠=================≠ http://www.google.com/history/optout?hl=en ≠=================≠ /preferences?hl=en ≠=================≠ https://accounts.google.com/ServiceLogin?hl=en&passive=true&continue=https://www.google.com/ ≠=================≠ /advanced_search?hl=en-IR&authuser=0 ≠=================≠ /language_tools?hl=en-IR&authuser=0 ≠=================≠ /intl/en/ads/ ≠=================≠ https://plus.google.com/116899029375914044550 ≠=================≠ /intl/en/about.html ≠=================≠ /intl/en/policies/privacy/ ≠=================≠ /intl/en/policies/terms/ ≠=================≠

来自搜索索引的公开信息流 ChatCrawler ——“公开 Telegram 的 Google”;随着该社群被抓取而更新。 时间为 UTC。

仅限公开内容,使用 Telegram 官方 API。 关于 · 常见问题 · 索引限制 · 移除页面 · 目录 · 搜索 · 计算方法