Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Beautifulsoup doesn't scrape page (python 2.7)

Python newb here so go easy on me, using 2.7 because I am following a video course that involves scraping web pages for data and the instructor is demonstrating with that version, but when he does it with Spyder, the console shows the output data. Mine doesn't.

from os import chdir 
import pandas as pd
import csv
#webscraping functions
from bs4 import BeautifulSoup
import urllib2


istst = (r'')
header = {'User-Agent': 'Mozilla/5.0'}
req = urllib2.Request(istst, headers = header)
page = urllib2.urlopen(req)
soup = BeautifulSoup(page, "lxml")
What I wanna do is save the data to a .csv but right now I'm trying to find out why beautifulsoup is failing.


EDIT: I am on Windows 7 x64.

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Python beautifulsoup pagination error The61 5 498 Apr-09-2020, 09:17 PM
Last Post: Larz60+
  use Xpath in Python :: libxml2 for a page-to-page skip-setting apollo 2 523 Mar-19-2020, 06:13 PM
Last Post: apollo
  scrape data 1 go to next page scrape data 2 and so on alkaline3 6 548 Mar-13-2020, 07:59 PM
Last Post: alkaline3
  Beautifulsoup don't get me the page mariolopes 5 915 Oct-23-2019, 04:44 PM
Last Post: mariolopes
  Scrape ASPX data with python... hoff1022 0 1,747 Feb-26-2019, 06:16 PM
Last Post: hoff1022
  How do i scrape website whose page changes using javsacript _dopostback function and Prince_Bhatia 1 2,574 Aug-06-2018, 09:45 AM
Last Post: wavic
  How to clean html content using BeautifulSoup in Python 3.6? PrateekG 5 4,573 Apr-27-2018, 01:14 PM
Last Post: snippsat
  [Python / BS4] How to Scrape digitalmatic7 9 4,948 Oct-21-2017, 12:55 AM
Last Post: snippsat
  Scrape Facebook page user posts text stockholm 6 4,687 May-08-2017, 12:24 PM
Last Post: Joseph_f2

Forum Jump:

Users browsing this thread: 1 Guest(s)