This file contains 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 | |
estado = str(input('Digite a sigla do seu estado(Ex: SP): ')).upper().strip() | |
cidade = str(input('Digite o nome de sua cidade(Ex: Jacarei): ')).lower().strip().replace(' ', '') | |
url = f'http://www.tempoagora.com.br/previsao-do-tempo/{estado}/{cidade}' | |
response = requests.get(url).text | |
cont = BeautifulSoup(response, 'lxml') | |
temp = cont.find('li', class_ = 'dsp-cell degree').text.strip() | |
print('\n') | |
print('-='*20) |
This file contains 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 decypher(word): | |
des = '' | |
pos = 0 | |
for c in range(0, 26): | |
for i in word: | |
if ord(i.upper()) + c > 90: | |
pos = 64 | |
aux = ord(i.upper()) + c - 90 | |
des += chr(pos + aux) | |
else: |
This file contains 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 sovem(): | |
print("\n", 55*"=", "\n") | |
def coleta(): | |
sovem() | |
print(" Bem-vindo ao calculador de Incertezas Combinadas!") | |
sovem() | |
vet = [] |
This file contains 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
#include <stdio.h> | |
int ehprimo(int); | |
int main(void){ | |
FILE *fp; | |
fp = fopen("testefileC.txt", "w"); | |
int i = 0; |
This file contains 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 tweepy | |
def get_all_tweets(screen_name): | |
auth = tweepy.OAuthHandler('---------------------', '-----------------------------------------------') | |
auth.set_access_token('------------------------------------','--------------------------=--') | |
api = tweepy.API(auth) | |
alltweets = [] |
This file contains 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 tweepy | |
auth = tweepy.OAuthHandler('46pvnSwIVylfWepbPsP4433wL', 'xWDPHaUkk0ub93qj1DaYgJcO8QtkPUhNFIE7uBAvzbSVLLpLzR') | |
auth.set_access_token('1952916806-9WbU9ROPLd4aVPprQZqWJhaW4RSXrBw4oK8A4Ow','gW5iuYPtrTxVhPmQxBemsKz6jCAOqbYx1fT0ewKHFyAkG') | |
api = tweepy.API(auth) | |
def obter_tweets(usuario, limite): | |
resultados = api.user_timeline(screen_name=usuario, count=limite) | |
tweets = [] | |
for r in resultados: |
This file contains 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 | |
import urllib.request | |
import json | |
# Variable used to order and naming the pictures downloaded | |
x = 1 | |
def get_url(user_): |
This file contains 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 bs4 import BeautifulSoup | |
import requests | |
import pytube | |
import os | |
if not os.path.exists('videos'): | |
os.makedirs('videos') | |
os.chdir('videos') |
This file contains 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
/* | |
https://github.com/jakleg | |
INTRUCOES: | |
CONTROLES: | |
- CIRCULO: W, A, S, D; | |
- QUADRADO: F, T, G, H; |
This file contains 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
#include <stdio.h> | |
int str_len(char s[]); | |
int compare(char s1[], char s2[]); | |
int main(void){ | |
int n, i, j, k, l = 0; | |
scanf("%d",&n); |
OlderNewer