how to extract the anglelist data using python

November 9, 2017 536 views
Python Ubuntu 16.04
jaypratap
By:
jaypratap

from selenium import webdriver
from bs4 import BeautifulSoup

link = 'https://angel.co/companies?locations[]=393668-New+Delhi,+IN'

driver = webdriver.Chrome()
for url in [link.format(i) for i in range(1,6)]:
driver.get(url)
soup = BeautifulSoup(driver.page_source, 'html.parser')
for items in soup.select('.name'):
print(name)
driver.quit

I run the following command but it returns nothing

1 Answer
Have another answer? Share your knowledge.