Skip to content

Instantly share code, notes, and snippets.

View vikram-s-narayan's full-sized avatar

Vikram vikram-s-narayan

View GitHub Profile
import requests
from bs4 import BeautifulSoup
URL = 'http://drugrepurposingportal.com/repurposed-drug-database.php?query=hiv&letter=#'
page = requests.get(URL)
soup = BeautifulSoup(page.content, 'html.parser')
results = soup.find(class_='content')
#print(results.prettify())
drug_elems = results.find_all(class_='abt-para data')