【发布时间】:2019-07-19 17:24:13
【问题描述】:
我正在尝试在 python 3 中读取一个 url,但是当我尝试它时,它并没有在 URL 中完全变红 这是我的代码
my_url="https://www.newegg.ca/Video-Cards-Video-Devices/Category/ID-38?Tpk=graphics%20cards"
Uclient=uReq(my_url)
page_html=Uclient.read()
【问题讨论】:
-
使用
requests页面加载正常。 -
Andrej Kesley 我确实使用过请求
-
@pelumi 我相信 Andrej 指的是
requests包。 -
我已经在我的 url 上使用了 requests 函数我只是将其称为 uReq 我正在尝试使用 the(.read) 方法读取 url 但是它给出的读取不完整
标签: python html python-3.x web-scraping urllib