Skip to content

Tag: web-scraping

How to get all links from a webpage using selenium?

I am trying to webscrape a site using Python, Selenium, Beautifulsoup. When I tried to get all the links ,It’ returning an invalid string. This is what I have tried Can someone help me please? Answer It is your selection with xpath, you select the <div> that do not have an href attribute. Select a…

Python helium get contents of table after click

I am using helium to scrape a webpage. After the click action i am presented with a table and i need to scrape the contents of the table but How do i select the table after the click ? Answer You would need to use find_elements_… to get all <table>, and use for-loop to work with every table separa…

scraping multiple tags at once

I’m trying to scrape the imdb top 250 movies and I want to get all the links of those movies from this page https://www.imdb.com/chart/top/ I tried but I’m only getting the first link only, so my question is how to scale this code to include the whole list of 250 movies? Answer bs.find(‘td&#…