/Scraping

Python, BeautifulSoup4

Primary LanguagePython

import requests

need this to use requests.get()

from bs4 import BeautifulSoup

need this to use BeautifulSoup()

Make a request to a site

soup = BeautifulSoup(page.content, ‘html.parser’)

we use selectors on soup variable

elem.select

a CSS selector inside BeautifulSoup

image.get(‘src’)

a selector that returns links