urlopen

    0热度

    1回答

    我试图报废一个网站。 它包含一个足球网站,列出所有赛季的所有比赛。 所以我想放弃每一个季节 这里的每场比赛的html页面是网址:http://www.lfp.fr/ligue1/calendrier_resultat#sai=77&jour=1 什么我做的是: url = 'http://www.lfp.fr/ligue1/calendrier_resultat#' data = {'sai':

    3热度

    3回答

    我试图让beautifulsoup一个URL工作,如下所示: from urllib.request import urlopen from bs4 import BeautifulSoup html = urlopen("http://proxies.org") soup = BeautifulSoup(html.encode("utf-8"), "html.parser") print

    0热度

    1回答

    我正在研究一个python脚本,它将与我正在部署的CRM系统的API进行通信。我可以从CRM服务器获取数据,但似乎无法添加(写入)新条目。我怀疑我在做一些愚蠢的事情,因为我对Python和编程一般都比较陌生,有人能指引我朝着正确的方向发展吗?服务器不会拒绝数据,但它的行为就像我从/api/v1.0/payments请求数据而不是发布新数据一样。 from urllib.request import

    0热度

    1回答

    我想写一个脚本,检查HTTPS是否可用,当我使用http。 我的想法是收集所有的HTTP链接,并使用urllib2为了打开一个连接到服务器使用HTTPS如下(请忽略语法问题,如果有的话。我试图简化代码,所以它会更容易理解这个问题本身): count=0 for packet in trafficPackets: if packet["http.host"] != None:

    0热度

    1回答

    页 我尝试以下操作: from urllib2 import urlopen from BeautifulSoup import BeautifulSoup url = 'http://propaccess.traviscad.org/clientdb/Property.aspx?prop_id=312669' soup = BeautifulSoup(urlopen(url).read()

    1热度

    1回答

    我遇到了我的程序冻结问题,我认为这是由于没有连接到Poloniex服务器。如何连接urlopen请求直到连接建立? 以下是我有: elif(command == "returnOrderBook"): try: ret = urllib2.urlopen(urllib2.Request('https://poloniex.com/public?command=' + comm

    -1热度

    1回答

    我有一个长期存在的问题urllib.request。我做什么: wahlrecht = urllib.parse.quote("http://www.wahlrecht.de/umfragen/") page = urllib.request.urlopen(url) 下面是完整的回溯,我得到: Traceback (most recent call last): File "<s

    2热度

    1回答

    下测试通过使用Python 2.7.11: def test_urllib(self): import urllib2 import ssl context = ssl._create_unverified_context() # service does not have a trusted cert url = urllib2.urlopen("http

    1热度

    1回答

    我无法在Python3中打开一个URL。 我使用一个名为Repl.it在线编辑器编码(https://repl.it/languages/python3) 代码: import urllib.request fp = urllib.request.urlopen("http://www.python.org") mybytes = fp.read() print(mybytes) 错误:

    1热度

    1回答

    我有一个多线程的python程序,它会连续打开本地URL的连接(),我已经安装了WAMP并具有sendMessages_mock.php文件在本地进行测试。有时,我得到“[Errno 10061]由于目标机器主动拒绝,所以无法连接” 每个线程都会调用此函数。每一秒钟,就会有数百个线程调用这个函数。只为少数线程调用获取此异常。对此有何想法? def sendMessage(body): t