Skip to content
Advertisement

Tag: web-scraping

soup.select() returns an empty list

I have an issue with .select which always returns an empty list while practicing webscraping. I am working on the following page: https://presse.ania.net/news/?page=1 using BeautifulSoup. I am getting and parsing HTML as following: I try to retrieve the urls of each articles displayed on the page, under class “title row-space-1” (I use developer tools of chrome to find class, disabled

web scraping returns an empty list

The problem here that printing job_titles returns an empty list instead of the job titles in the web site please help me fix this problem and any help would be appreciated Answer When I first went to the URL you’re requesting, I was shown a search page with no jobs listed. It was only after I submitted a search that

How to scrape Trusted Shops?

I would appreciate your help on this scraping problem. I would like to scrape this site: https://www.trustedshops.de/bewertung/info_XDAD39B874C275A0751198C2510C3C670.html Although my code does not give me an error message, I do not see any output. I believe the problem is the bs.find_all statement; basically, I have problems telling the code how to index the user reviews. What is the correct class for

Error handling in variables when using Requests

I have the below code that works fully up until I set x=37. At this point, I receive the error TypeError: ‘NoneType’ object is not subscriptable on the variable t[“vintage”][“wine”][“region”][“country”][“name”]. I have added another variable that the same issue happens on almost everytime, so you may find the error there instead. I think this is because one of the 25

itterate through multiple URLs with BS4 – and store results into a csv-format

hi there i am currently working on a little tiny sraper – and i am putting some pieces together i have an URL which holds record of so called digital hubs: see https://s3platform-legacy.jrc.ec.europa.eu/digital-innovation-hubs-tool/-/dih/1096/view i want to export the 700 regords in (to) a csv-format: that is -into a excel-spreadsheet. so far so good: i have made some first experiments –

Capture python output to variable

I’m trying to automate pybaseball from player lookup to data extraction and can’t seem to get past the first step of setting the player id as a variable. I’m utilizing the following code to pull player id: The output from the above lines are (exact copy/paste): Is there a method for setting the key_fangraphs number (2036) to a variable from

Multiple errors when scraping premier league tables

I am learning web-scraping. I succeeded scraping top youtubers ranking with this as reference. I am using the same logic to scrape the PL ranking, but having two issues: it is only collecting up to 5th place. it is getting only the first place for the result and then, getting attribute error: Answer The issue is that html.parser doesn’t parse

Advertisement