I want to scrape a specific part of the website Kickstarter.com
I need the strings of the Project-title. The website is structured and every project has this line.
<div class="Project-title">
My code looks like:
#Loading Libraries
import urllib
import urllib.request
from bs4 import BeautifulSoup
#define URL for scraping
theurl = "https://www.kickstarter.com/discover/advanced?category_id=16&woe_id=23424829&sort=popularity&seed=2448324&page=1"
thepage = urllib.request.urlopen(theurl)
#Cooking the Soup
soup = BeautifulSoup(thepage,"html.parser")
#Scraping "Project Title" (project-title)
project_title = soup.find('h6', {'class': 'project-title'}).findChildren('a')
title = project_title[0].text
print (title)
If I use the soup.find_all or set another value at the line Project_title[0] instead of zero, Python shows an error.
I need a list with all the project titles of this Website. Eg.:
- The Superbook: Turn your smartphone into a laptop for $99
- Weights: Weigh Smarter
- Mine Kafon Drone World's First And Only Complete
- Weather Camera System Omega2: $5 IoT Computer with Wi-Fi, Powered by Linux