Skip to content

Instantly share code, notes, and snippets.

View juanplima's full-sized avatar

Juan Pablo Ribeiro de Lima juanplima

View GitHub Profile
@juanplima
juanplima / main.py
Created February 26, 2024 00:17
Sistemas de Metas - Vendas - Python
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:
@juanplima
juanplima / dados.py
Created February 24, 2024 05:20
Python - Repescagem de Dados
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")
@juanplima
juanplima / gerador.py
Last active February 24, 2024 05:16
Python - Gerador de senha aleatória
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()