Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

scrape with beautiful soup

from bs4 import BeautifulSoup 
import requests 
page = requests.get("https://www.google.dz/search?q=see") 
soup = BeautifulSoup(page.content) 
links = soup.findAll("a") 
for link in links: 
    if link['href'].startswith('/url?q='): 
        print (link['href'].replace('/url?q=',''))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #scrape #beautiful #soup
ADD COMMENT
Topic
Name
6+5 =