Skip to content
Advertisement

Tag: web-scraping

Calendar Data Picker in Selenium

Hi I am trying to figure it out how to pick day from the calendar in Python. I would like to select the date 04/27/2022 under requested loading date. I read some post related to this but I could not figure it out. This is what I did so far but not working. enter image description here Answer You do

How to click through multiple elements with same XPATH in selenium using for loop?

I’m trying to web scrape different elements with same class name. The following statements works well. … and so on. Now, if I put this in a loop, it doesn’t work. Looks like, it doesn’t recognize (//div[@class= ‘jumbo-tracker’])[i] Here’s the code: Here’s the exception: Please, help. Answer range() The range() function creates a sequence of numbers. So while passing the

Python web-scraper not working for TripAdvisor

I am trying to write a simple Python scraper in order to save all the reviews of a specific place on TripAdvisor. The specific link I am using as example is the following: https://www.tripadvisor.com/Attraction_Review-g319796-d5988326-Reviews-or50-Museo_de_Altamira-Santillana_del_Mar_Cantabria.html Here is the code I am using, that is supposed to print the relative html: If I run this code in the console it stays pending

Extracting Carbon offset projects from website using beautiful soup and getting nothing

I’m trying to extract the data from this website(‘https://alliedoffsets.com/#/profile/2). It has many such projects and I want to get the values of Estimated Average Wholesale Price and Estimated Annual Emission Reduction. When, I trying to print the code using beautiful soup it is not giving those tags and giving empty values. I know it could be a basic thing but

json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) Scrapy

Hi guys I am trying to scrap/crawl this json based site using scrapy/Beautifulsoup https://pk.profdir.com/jobs-for-angular-developer-lahore-punjab-cddb I have write this below code to run read/fetch the json from website: But it will arise this error again and again: If anyone knows please help me it will be very helpful for me Answer The json that is located inside <script> isn’t valid, so

Writing Dictionaries into a CSV

I am working on a web scraping project, I am trying to save the results into a CSV file, I want to save the key in the dictionary as columns and the values as a row, (keep in mind that the value pair in the dictionary refers to a variable that extracts data from a web site) Answer Here is

Advertisement