This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
from twilio.rest import Client | |
account_sid = "AC8263e52aaafaf9fca5dcde32e59c2013" | |
auth_token = "6443cba8f3f0212030dac277a1aeeb19" | |
client = Client(account_sid, auth_token) | |
lista_meses = ['Janeiro', 'fevereiro', 'março', 'abril', 'maio', 'junho'] | |
for mes in lista_meses: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from bs4 import BeautifulSoup | |
link = "https://www.google.com/search?q=cota%C3%A7%C3%A3o+dolar&oq=cota%C3%A7%C3%A3o+dolar" | |
headers = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36"} | |
requisicao = requests.get(link, headers= headers) | |
site = BeautifulSoup(requisicao.text, "html.parser") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
import string | |
def gerar_senha(tamanho=10): | |
caracteres = string.ascii_letters + string.digits + string.punctuation | |
senha = ''.join(random.choice(caracteres) for i in range(tamanho)) | |
return senha | |
senha_aleatoria = gerar_senha() |