requests

When parsing in python3 via beautifulsoup error 400 bad request what to do?

Parsed the online store with authorization and through BeautifulSoup, but stably after 226 requests, every second request gives an error 400 bad request, what to do?

BeautifulSoup-site parsing

import requests import csv from bs4 import BeautifulSoup url = 'https://www.zakon.kz/news/page/3' def parse(url): news ... print(parse(url)) I can't understand what the problem is, why the information is not written correctly to the csv file.

when parsing beru.ru responds with errors: '403' or 'Connection aborted'

When trying to parse the site beru.ru errors are returned: 403: import requests from bs4 import BeautifulSoup import tim ... ible that your computer is infected with malware that automatically accesses To Yandex."etc. Zarenee thank you for your help

Content parsing (Python, BeautifulSoup, requests)

Here is the code: from bs4 import BeautifulSoup html = requests.get('https://kaliningrad.bankiros.ru/currency/').text soup ... rything seems to be done as always. How can I parse the currency from the site https://kaliningrad.bankiros.ru/currency/ ?

'str' object cannot be interpreted as an integer what is the problem?

For _ in range(threadcountinp): TypeError: 'str' object cannot be interpreted as an integer Code: from bs4 import Beautiful ... '\n') for _ in range(threadcountinp): t = threading.Thread(target=thread) t.start() file.close() proxylist.close()

Parsing videos from Youtube channel (Python, BeautifulSoup, requests)

There is a code like this: from bs4 import BeautifulSoup import requests ycid = input('Введите код-идентификатор канала: ') ... nDX1UoRzAHYgNg Парсим с канала: https://www.youtube.com/channel/UCviSYAcwdnDX1UoRzAHYgNg [] [] [] How can I fix the code?

The Python parser doesn't work

If you turn on the code, it will work for a couple of seconds, while not displaying anything, and then it will turn off. The ... ).get('href') }) for video in videos: print(f"Ссылка на видео - {video['link']}") parse_of_video()

Parsing fl.ru using python (bs4, requests), how to separate categories when parsing?

I start parsing orders on in this way: import requests from bs4 import BeautifulSoup as BS r = requests.get('https://www.fl ... }) print(orders) Save() Help me figure out how to parse only orders from a certain category (texts, design, etc.)?

Not parsed lurkmore.to

I wanted to parse the site https://lurkmore.to, however, neither the use of the user agent nor the proxy does not help, the e ... aborted.', ConnectionResetError(10054, 'Удаленный хост принудительно разорвал существующее подключение', None, 10054, None))

How to read the file.xls obtained from the internet?

I'm trying to read the file .xls obtained from the internet using requests to later turn it into an array or list of dictiona ... still save the file. In general, now the question is how to feed the xld type bytes to the library so that it sees it .xls?

How to parse Yandex. Market in python.Error 403

Hello everyone.Problem with Yandex.Market parsing.I want to parse phones . When I contact Yandex. Market, it returns me a 403 ... ng="UTF8" soup = bs4.BeautifulSoup(r.content,"html.parser") sel = soup.select("div.d0N9PZYfeg a") for i in sel: print(i)

Requests module

I need to get a list of videos on the channel https://www.youtube.com/channel/UCMpoPt5DaBcscn1eLQxLCwA/videos, but the proble ... -grid-video-renderer')[0] last_video_link = last_video_html.select('a[id="video-title"]')[0]['href'] input(last_video_link)

Why is the img tag not parsed?

I decided to write a parser, the code below, and when parsing the image gives an error, how to fix it, I write on the guide, ... itle').find('img').get('src') } ) return cards html = get_html(URL) print(get_content(html.text))

Python vk api error

I'm writing a python program for posting posts with an image to a Vk group. I use the vk_api library and requests. Actually h ... ')} ur=requests.post(upload_url,files=file) print(ur) At startup, it outputs Response [200] . How can this be fixed?

ValueError: too many values to unpack (expected 2) (not enough variables to unpack values)

This code: import requests import pandas as pd names=['Abram/', 'Acker/', 'Acton/', 'Addington/', 'Adley/', 'Ainsley/', 'A ... s for k, vs in to_key_val_list(data): ValueError: too many values to unpack (expected 2) Tell me how you can fix them

How to save a file via python (requests module)

There is a link that points to the page from which the file with the information should be automatically downloaded. To do th ... pic.org/media/attachments/course67/3.6.3/699991.txt <built-in method read of _io.BufferedWriter object at 0x03475228>

Authorization on the Python + Requests website

Guys, please tell me, I can not pass authorization on the site from bs4 import BeautifulSoup import requests #НАЧАЛО Авториз ... _xsrf, }) with open("hh_success.html","w",encoding="utf-8") as f: f.write(post_request.text) #Конец Авторизация на сайте

I can't log in to cabinet.ruobr.ru via requests

I want to parse the dz from the site, but the site does not let me in any way. import requests URL = 'https://cabinet.ruobr ... I do to make the site miss me? by cookies in any way, the TC does not remember them. Everything works fine through selenium.

How to parse multiple photos/videos in one instagram post in python?

I want to extract the links of all images from the link, but I have a problem with extracting information from the tag script ... 0) I don't really know how to work with js types, but if someone has the desire and time to help, I would be very grateful!

How to parse images from a website gifer.com?

I need to parse a picture or rather a gif and download it, and if this is not possible, then parse its url or path to it, the ... s/loading") soup = bs(r.content, 'lxml') img = soup.find('picture', class_='preview-media preview-media_loaded') print(img)