Skip to content
Advertisement

Tag: beautifulsoup

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

Scraping stock price data

I’m trying to get the prices from this URL. Can someone tell me what I’m doing wrong? https://stockcharts.com/h-hd/?%24GSPCE Answer Stockcharts only provides historical data to StockChart members, so you probably need to pass some kind of authentication. Or use an api like this one

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

How do you scrape a table from a website which is hosting the table data outside of the HTML?

I am trying to scrape the table data from this table URL: https://covid19criticalcare.com/pharmacies/ On my previous scrape I used the following Python packages: from bs4 import BeautifulSoup import requests import mysql.connector import pandas as pd from sqlalchemy import create_engine But this url’s HTML doesn’t contain the table data on it, instead it seems to be drawing the data from an

Advertisement