Add tests for Redgifs

This commit is contained in:
Serene-Arc authored and Ali Parlakci committed 2021-04-18 16:44:05 +03:00
1 parent 4146f181c7
commit 06e7e81de0
2 files changed
+41 -5

No files matched your search

@@ -31,11 +31,10 @@ class Redgifs(GifDeliveryNetwork):
url = "https://redgifs.com/watch/" + url.split('/')[-1]
headers = [
'User-Agent',
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)'
' Chrome/67.0.3396.87 Safari/537.36 OPR/54.0.2952.64'
]
headers = {'User-Agent':
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)'
' Chrome/67.0.3396.87 Safari/537.36 OPR/54.0.2952.64'
}
page_source = requests.get(url, headers=headers).text