2019-05-05 17:59:56 +00:00
|
|
|
import cloudscraper
|
2019-01-26 03:58:49 +00:00
|
|
|
request = "GET / HTTP/1.1\r\n"
|
|
|
|
|
2019-05-05 17:59:56 +00:00
|
|
|
cookie_value, user_agent = cloudscraper.get_cookie_string("https://itorrents.org/torrent/B415C913643E5FF49FE37D304BBB5E6E11AD5101.torrent")
|
2019-01-26 03:58:49 +00:00
|
|
|
request += "Cookie: %s\r\nUser-Agent: %s\r\n" % (cookie_value, user_agent)
|
|
|
|
# cookie = "Cookie: %s" % (cookie_value)
|
|
|
|
|
2019-05-05 17:59:56 +00:00
|
|
|
print (request)
|