Skip to content

Commit

Permalink
Merge pull request #7 from Kartatz/fix-for-#6
Browse files Browse the repository at this point in the history
Spoof User-Agent string @Kartatz
  • Loading branch information
Juvenal-Yescas committed Mar 5, 2023
2 parents 1c1450e + f2f18a5 commit ee05713
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mediafire_dl.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ def extractDownloadLink(contents):
def download(url, output, quiet):
url_origin = url
sess = requests.session()
sess.headers = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.5481.178 Safari/537.36"
}

while True:
res = sess.get(url, stream=True)
Expand Down

0 comments on commit ee05713

Please sign in to comment.