Skip to content

Tag: beautifulsoup

get a list from html source using python3

I am trying to get Cases list of COVID-19 positive cases from https://www.worldometers.info/, e.g. this The sample looks like(~line no: 700) : I am using bs4 as: which does scrape the file, but after that I am clueless how to get the data. The list I am looking for is commented with ## I NEED THIS LIST. Kindl…

Web Scraping find not moving on to next item

Usage of this is to sum up all the different kinds of items sold in kijiji and pair them up with a price. But I can’t seem to find anyway to increment what beautiful soup is finding with a class of price, and I’m stuck with the first price. Find_all doesn’t work either as it just prints out …

Extract two div tags in one BS find_all

Is it possible to extract two HTML div tags in one “soup.find_all” with beautifulSoup? The divs are repeatedly called “event odd”, “event even” and i want to loop through them all webpage code: My code: concerts = soup.find_all([‘div’, {‘class’: &#82…