Advertisement
ziriuz84

Untitled

Oct 9th, 2022
1,125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.32 KB | None | 0 0
  1. import requests
  2.  
  3. url = "http://www.archiviolastampa.it/"
  4.  
  5. payload='Itemid=3&datePickerFixed=&datePickerFrom=&datePickerTo=&date_radio=date_on&free_search_add_entity_author=&free_search_add_entity_authors=&free_search_add_entity_authors_old=&free_search_add_entity_organization=&free_search_add_entity_organizations=&free_search_add_entity_organizations_old=&free_search_add_entity_person=&free_search_add_entity_persons=&free_search_add_entity_persons_old=&free_search_add_entity_place=&free_search_add_entity_places=&free_search_add_entity_places_old=&free_search_query-type=q_a&keywords=milan&mod=libera&old_keywords=&option=com_lastampa&q_df=&q_dt=&q_fp=&q_h=&q_l=all&q_o=&t=5f9bace9d83cd3fc1c116b9ddc8c456d&task=search'
  6. headers = {
  7.   'Upgrade-Insecure-Requests': '1',
  8.   'Content-Type': 'application/x-www-form-urlencoded',
  9.   'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36',
  10.   'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
  11.   'host': 'www.archiviolastampa.it',
  12.   'Cookie': '6c682c64700ab4f1b92c124127278451=-; PHPSESSID=us27a7rvtm88r1l3q27h4io741; mosvisitor=1'
  13. }
  14.  
  15. response = requests.request("POST", url, headers=headers, data=payload)
  16.  
  17. print(response.text)
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement