Skip to content

Instantly share code, notes, and snippets.

View impshum's full-sized avatar
:octocat:
Loading...

impshum

:octocat:
Loading...
View GitHub Profile
@impshum
impshum / Cikloberza.py
Created August 14, 2018 11:16 — forked from skpyns/Cikloberza.py
Fetching a number of ads of used bicycles
from bs4 import BeautifulSoup
import requests
# reusable main soup function
def lovely_soup(url): # passes the url as a variable
r = requests.get(url) # get the requested url
soup = BeautifulSoup(r.text, 'lxml') # turn html content into soup
return soup
# soup helper function