menu

Recent questions tagged beautiful-soup

1 vote
1 answer
Why does it produce an empty list instead of unloading the data? There are no errors in the other part of the code, everything works. get_html - I use requests to send a request to the server get_html - using bs to parse the data ...
by 66656665
asked Sep 24, 2021
1 vote
1 answer
Python, beautifulsoup 4, an alternative to xpath? Hello, how do I implement an alternative to xpath in soup? <a class="flhdr" href="../?wicket:interface=:4:nearLocation:4:locationLink::ILinkListener::&action ...
by Swiftyzoid
asked Sep 24, 2021
1 vote
1 answer
Why does the parser generate an error? Guys, the file was deleted, I'm doing it in a hurry, my brain is already boiling, help me figure it out. import requestsfrom bs4 import BeautifulSoupHEADERS = { ...
by 66656665
asked Sep 24, 2021
1 vote
1 answer
image
Python. Problem with parsing. What's the problem? The situation with BeautifulSoup is unclear I'm trying to find tags using the finaAll() method, but I get the following situations: I get a list with names, with list ...
1 vote
1 answer
What's the best way to check for new news? There is a news site. We need to make a parser that will check every 2 hours for new news and add if any. News are displayed with different periodicity. How to properly ...
by mercmarcus
asked Sep 23, 2021
1 vote
2 answers
How do I spar the data generated by the script? Good afternoon! This is a problem, I'm just a beginner in programming. I need to spar this page. https://www.planespotters.net/production-list/Airb... There is abso ...
by d0dge
asked Sep 21, 2021
1 vote
1 answer
What's the peculiarity of parsing with Beautiful Soup? Good day ! Can you tell me what is the advantage of parsing with Beautiful Soup? The difference in the extended functionality compared to the standard methods? The diffe ...
by Soul1
asked Sep 20, 2021
1 vote
2 answers
How do I get the href out of the class? there is a list of awards: awards = <a class="bttn_green" href="/index.php?r=quests/reward&id=74538347&quest_id=1598044167">text</a>, <a ...
by ruprup
asked Sep 18, 2021
1 vote
1 answer
image
Can't get a link out of an href using python? >I can't search for a link that's in the href Program code: import requestsfrom bs4 import BeautifulSoupURL = 'https://zaka-zaka.com/'HEADERS = { 'user-Agent': 'Mo ...
by daladyev
asked Mar 25, 2021
1 vote
1 answer
I made a parser, it gives out None? I made a parser, it gives out None. I assume that this is because of the huge amount of javascript on the site. I need to spar a photo. The price and title can be sparre ...
by 66656665
asked Mar 23, 2021
2 votes
1 answer
On the local machine code works fine, but if I load it on Heroku, it does not work. How to fix it? I tested on my machine, everything worked fine, but as on heroku uploaded,so the bot stopped responding. What is the problem, and if it is not difficult, write how to so ...
1 vote
2 answers
image
How can I get the content of an iframe using python? How can I get the content of an iframe using python? I want to use requests without resorting to selenium, how do I implement this? ...
by proboltal
asked Mar 22, 2021
2 votes
1 answer
How do I find all the tags and pull values from them? I wrote code parser, but it pulls only 1 picture on the page, the very first, and on some pages there are 2-3 pictures with the same tag 'with-overtask', you need to pul ...
1 vote
2 answers
Parser error: AttributeError: 'NoneType' object has no attribute 'find'.How to fix it? I start the program, I get to the point of entering the number, I enter and there is an error: Traceback (most recent call last): File "C:\Users\AppData\Local\Packages\ ...
1 vote
2 answers
How do I make the bot wait for a message? How do I make the bot wait for the user to enter the job number and then place this value in the variable per? def subject(message): if message.text == 'Русский язык' ...
by yk_vova
asked Mar 22, 2021
2 votes
1 answer
How do I pull out the full value of the class? How can I pull a direct link to a picture from the "with-overtask" class? When I try to parse through find, the dictionary just shows "\n\n" and that's it. Page Code: & ...
by yk_vova
asked Mar 22, 2021
1 vote
1 answer
Why does a regular expression with a tag not work? I'm trying to rip out text using a reg. expression under the tag<nobr> , which is inside a certain table: soup = BeautifulSoup(resArrow, 'lxml')tbl = soup.find('tb ...
1 vote
1 answer
image
How do I move to the next element under the same bs4 class? Parsing the page in the vk, came to the location, and to spar exactly the name of the city exposed the following picture (bottom photo), and then I need to spar the seco ...
by judywb
asked Mar 21, 2021
1 vote
1 answer
How do I know which tag in bs4 python? There is code that finds a tag in html code containing the necessary text, but I only need the name of the tag (h1, span, etc.). How to implement? ...
by Kostyan4ik
asked Mar 21, 2021
2 votes
1 answer
How do I log in to m.Ok.ru using python requests? I tried it like this: import requests, lxml, html5libfrom bs4 import BeautifulSoup as bsses = requests.Session()ses.headers = { 'user-agent': 'Opera / 9.80 (J2ME/MID ...
by proboltal
asked Mar 21, 2021