Skip to content

Instantly share code, notes, and snippets.

@scrazzz
scrazzz / javhdtoday_scraper.py
Created April 3, 2021 08:16
Scraps first video result in search. I'm proud of this code.
import requests
from bs4 import BeautifulSoup
query = input('Search: ')
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36'
}
r = requests.get(f'https://javhd.today/search/video?s={query}', headers=headers).text
soup = BeautifulSoup(r, 'lxml')