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
# -*- coding: utf-8 -*- | |
#!/usr/bin/python | |
import os | |
import re | |
import requests | |
from bs4 import BeautifulSoup | |
def run(link): | |
if link is None: |
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
<script> | |
import api from '@/api' | |
import { log } from 'util' | |
import axios from 'axios' | |
import { isEmpty } from 'lodash' | |
export default { | |
name: 'tabela', | |
data () { |
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
{% extends "core/base.html" %} | |
{% block container %} | |
<div id="starting"> | |
<div class="container"> | |
<div class="row"> | |
<h3>Lista dos Gastos | |
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#addGastoModal">Add Gastos</button> | |
</h3> | |
  |
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
{% extends "core/base.html" %} | |
{% block container %} | |
<div id="starting"> | |
<div class="container"> | |
<div class="row"> | |
<h3>Lista dos Gastos | |
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#addGastoModal">Add Gastos</button> | |
</h3> | |
  |
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
{% extends "core/base.html" %} | |
{% block container %} | |
<div id="starting"> | |
<div class="container"> | |
<div class="row"> | |
<h3>Lista dos Gastos | |
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#addGastoModal">Add Gastos</button> | |
</h3> | |
  |
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
from selenium import webdriver | |
from selenium.webdriver.support.ui import Select | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.support import expected_conditions as EC | |
from selenium.webdriver.common.keys import Keys | |
from selenium.webdriver.common.by import By | |
from time import sleep |
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
# coding: utf-8 | |
import re | |
def lerArquivo(arquivo): | |
with open(arquivo, encoding="utf8") as _file: | |
texto = _file.readlines() | |
for t in texto: | |
'''Transforma o texto em dicionário tirando os espaços em branco''' | |
t = t.split(' ') | |
'''Só pega as linhas do texto que seja maior do que 30 |
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
tabuleiro = {'top-L':' ','top-M':' ','top-R':' ', | |
'mid-L':' ','mid-M':' ','mid-R':' ', | |
'low-L':' ','low-M':' ','low-R':' '} | |
def imprimeTabuleiro(tabuleiro): | |
print(tabuleiro['top-L'] + '|' + tabuleiro['top-M'] + '|' + tabuleiro['top-R']) | |
print('-+-+-') | |
print(tabuleiro['mid-L'] + '|' + tabuleiro['mid-M'] + '|' + tabuleiro['mid-R']) | |
print('-+-+-') | |
print(tabuleiro['low-L'] + '|' + tabuleiro['low-M'] + '|' + tabuleiro['low-R']) |
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
# -*- coding: utf-8 -*- | |
from requests import get | |
from bs4 import BeautifulSoup as bs | |
def links(url): | |
html = get(url) | |
soup = bs(html.content, 'html.parser') | |
return soup | |
def parse(soup): |
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 requests import get | |
from bs4 import BeautifulSoup as bs | |
from shutil import copyfileobj | |
import os | |
html = get('http://www.afterfest.com.br/mr-moo-4a-edicao/') | |
soup = bs(html.content, 'html.parser') | |
def download_file(name, url, pasta): | |
os.makedirs(pasta, exist_ok=True) # armazena as na pasta |
OlderNewer