Skip to content

Instantly share code, notes, and snippets.

View tadaoisgod's full-sized avatar

Fernando Tadao Ito tadaoisgod

  • São Carlos/SP, Brazil
View GitHub Profile
@tadaoisgod
tadaoisgod / keybase.md
Created August 18, 2021 13:00
keybase.md

Keybase proof

I hereby claim:

  • I am tadaoisgod on github.
  • I am fernandoito (https://keybase.io/fernandoito) on keybase.
  • I have a public key ASBgqqc0_cAhKxyz3UalWhMC8IxY9HWrZt7Gi6-o4iaRBgo

To claim this, I am signing this object:

@tadaoisgod
tadaoisgod / useragent.py
Last active February 13, 2023 19:05
How to add user agents to a request in Python
import requests
url = 'https://www.whatsmyua.info/'
headers = {
'User-Agent': (
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 '
'(KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36'
),
}