Skip to content

Tag: beautifulsoup

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

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