Sakti Bagchi
saktibagchi
ยท
AI & ML interests
Want to do something but don't know how
Recent Activity
reacted
to
luigi12345's
post
with ๐ค
about 1 month ago
MinimalScrap
Only Free Dependencies. Save it.It is quite useful uh.
```
!pip install googlesearch-python requests
from googlesearch import search
import requests
query = "Glaucoma"
for url in search(f"{query} site:nih.gov filetype:pdf", 20):
if url.endswith(".pdf"):
with open(url.split("/")[-1], "wb") as f: f.write(requests.get(url).content)
print("โ
" + url.split("/")[-1])
print("Done!")
```
Organizations
None yet
models
None public yet
datasets
None public yet