Bio

url = "http://www.pawb.uscourts.gov/local-rules"
sess = requests.Session()
abpa = requests_bofa.abproxy.ABProxyAdapter()
sess.mount("https://", abpa)
sess.mount("http://", abpa)
response = sess.get(url)
soup = BeautifulSoup(response.content, "html.parser")
base_url = 'http://www.pawb.uscourts.gov'
articles = soup.find_all('div', class_='field__item even')
urls = [base_url + article.find('a', href = True)['href'] for article in articles if article.find('a', href = True)]
print(urls)

Recent Posts     Most popular