steamrip scrapes downloadlinks for the provider - steamrip connection

This commit is contained in:
nosch
2026-02-27 10:02:11 +01:00
parent d6a388652b
commit 29bac99359
6 changed files with 70 additions and 4 deletions
@@ -0,0 +1,22 @@
from bs4 import BeautifulSoup
import requests
def scrape_buzzheavier(url):
response = requests.get(url)
response.raise_for_status()
download_url = url + '/download'
headers = {
'hx-current-url': url,
'hx-request': 'true',
'referer': url
}
head_response = requests.head(download_url, headers=headers, allow_redirects=False)
hx_redirect = head_response.headers.get('hx-redirect')
return hx_redirect
if __name__ == "__main__":
example = "https://buzzheavier.com/irzewxdjt5ah"
download = scrape_buzzheavier("https://buzzheavier.com/irzewxdjt5ah")
print(download)