lundi 23 janvier 2017

Trouble Getting BeautifulSoup To Return Just The Movie Titles & Scores from h3 class In An href

This is the site...

http://ift.tt/2jSJ2oM

Right clicking inspect on the titles below posters in the middle of the page brings up the code. I've tried too many variations from tutorials to post. This is what my Python script looks like...

import requests
from bs4 import BeautifulSoup

url = "http://ift.tt/2jSJ2oM"

r = requests.get(url)

soup = BeautifulSoup(r.content, "lxml")

NEXT STEP ????????




Aucun commentaire:

Enregistrer un commentaire