Advertisement
repente

Untitled

Aug 27th, 2019
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. import requests
  2. from bs4 import BeautifulSoup
  3.  
  4.  
  5. url = "temp04.py"
  6.  
  7. cookie = {"Cookie": ""}
  8.  
  9. header = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; \
  10. x64; rv:47.0) Gecko/20100101 Firefox/48.0'}
  11.  
  12.  
  13.  
  14. response = requests.post(url, cookies=cookie, heasers = header)
  15.  
  16. html = response.text
  17.  
  18. print(html)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement