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
<div class="container"> | |
<form action="{% url 'estados' %}" method="post"> | |
{% csrf_token %} | |
<select name="regiao_selecionada" id="regiao_selecionada"> | |
{% for indice, regioes in regioes.items %} | |
<option value="{{ regioes.id }}">{{ regioes.nome }}</option> | |
{% endfor %} | |
</select> | |
<button type="submit">Pesquisar</button> | |
</form> |
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
def estados(request): | |
regiao_selecionada = request.POST['regiao_selecionada'] | |
api_estados = f'https://servicodados.ibge.gov.br/api/v1/localidades/regioes/{regiao_selecionada}/estados' | |
requisicao_estados = requests.get(api_estados) | |
lista = requisicao_estados.json() | |
dicionario_estados = {} | |
for indice, valor in enumerate(lista): | |
dicionario_estados[indice] = valor |
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
from requests import get | |
url = 'https://cms-media-api.r7.com' | |
response = get(url) | |
for info in response.json(): | |
for info2 in info.items(): | |
print(f'{info2[0]} => {info2[1]}') | |
print(f'{"*"*100}') |
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 csv | |
import os | |
import shutil | |
from datetime import datetime | |
from glob import glob | |
from pathlib import Path | |
from time import sleep | |
import pandas as pd |
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 json | |
from requests import get | |
from bs4 import BeautifulSoup as bs | |
url = 'https://mangayabu.top/manga/one-piece/' | |
html = get(url) | |
soup = bs(html.content, '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
from time import sleep | |
from selenium import webdriver | |
from webdriver_manager.chrome import ChromeDriverManager | |
from selenium.webdriver.common.by import By | |
driver = webdriver.Chrome(ChromeDriverManager().install()) | |
url = 'https://etherscan.io/tokentxns-nft1155?a=0xef8743787d4dfd00c5badbf606a8ba0d1bcd5635' |
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
# from ast import Break, Continue | |
# from msilib.schema import Class | |
# from statistics import variance | |
import random | |
class Escadaseespadas: | |
def __init__(self): | |
self.dict_escadas = { |
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
file = '../poema.txt' | |
with open(file, 'r', encoding='utf-8') as _f: | |
texto = _f.readlines() | |
novo_texto = [] | |
vogais = ["a", "e", "i", "o", "u"] | |
for linha in texto: | |
for letra in linha: | |
if letra in vogais: | |
novo_texto.append("*") |
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
Nos três primeiros projetos, o colaborador é pago por sprint (pode participar de 3 projetos simultâneos). A partir do quarto projeto, você passa a ter uma remuneração-base adicional (e uma cláusula de prioridade com a gente). | |
Também a partir do 4º projeto (um total de 30 sprints completos), o colaborador passa a ser elegível para promoções e equity (participar da sociedade) de projetos internos. E a partir do momento que assinamos o contrato (elaborado por projeto), é garantido que o colaborador manterá a posição até o final dele. | |
Trabalhamos sempre com sprints de 7 dias, sendo que nos três primeiros te orientamos na melhor forma de preenchê-lo e definir as suas próprias metas. A nível Jr., remuneramos R$ 600,00 por Sprint. A nível pleno, remuneramos a R$ 1.000,00, e nível sênior a remuneração é de R$ 1.400,00 por sprint. | |
Quanto à remuneração adicional, é uma forma de "comprarmos" a sua prioridade. A nível Jr., essa remuneração é de R$ 1.000,00. Pleno de R$ 2.000,00 e Sênior de R$ 4.000,00. | |
O colaborador |
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
from requests import get | |
import csv | |
import io | |
if __name__ == "__main__": | |
url = 'https://www.anbima.com.br/informacoes/est-termo/CZ-down.asp' | |
r = get(url) | |
r.encoding = 'utf-8' # useful if encoding is not sent (or not sent properly) by the server | |
csvio = io.StringIO(r.text, newline="") |