简体   繁体   English

python请求给<Response [503]>

[英]python request give <Response [503]>

So I am making a comic books downloader/reader(with PyQt5) from the internet and i was good and working but suddenly when I tested the app there was a proplem in the search function in the request code and here is the code所以我正在从互联网上制作一个漫画书下载器/阅读器(使用 PyQt5),我很好并且工作,但突然当我测试应用程序时,请求代码中的搜索功能出现问题,这是代码

url='https://www.comicextra.com/comic-search?key=%s'%self.searchle.text().replace(' ','+')
page = requests.get(url, stream=True)#to get the page of the search results
print(page)
html=bs4.BeautifulSoup(page.text,features="html5lib")#to get the html of the page
srl=html.select('div[class="mb-right"] h3 a')#to get the search results as a list
details=html.select('div[class="mb-right"] div[class="detail"]')#to get the detalis

this is part of fucntion of QMainwindow class and when I do print(page) it gives me :Response [503]这是 QMainwindow 类功能的一部分,当我打印(页面)时,它给了我:响应 [503]

I searched about this and they say it is server problem but the thing is the website work just fine(you can check yourself) so is there is any solve to this problem?我搜索了这个,他们说这是服务器问题,但问题是网站工作得很好(你可以自己检查)所以这个问题有什么解决办法吗?

503 is a HTTP Status code for Service Unavailable . 503Service Unavailable的 HTTP 状态代码。 That might be because the server can't handle the number of requests it's getting.那可能是因为服务器无法处理它收到的请求数量。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM