Using Requests and Beautiful Soup, with the most recent Beautiful Soup 4 docs.
Install our tools (preferably in a new virtualenv):
pip install beautifulsoup4
Using Requests and Beautiful Soup, with the most recent Beautiful Soup 4 docs.
Install our tools (preferably in a new virtualenv):
pip install beautifulsoup4
| import { dateFormat } from '@/sgu-glp/src/utils/date'; | |
| const applyDateFormat = dateFormat(); | |
| const formatDates = (data, keys) => { | |
| fields.forEach(key => { | |
| data[key] = applyDateFormat(data[key]) | |
| }) | |
| return data | |
| } | |
| const dadosGerais = data => ({ |
| <?php | |
| require __DIR__ . '/../vendor/autoload.php'; | |
| $dispatcher = FastRoute\simpleDispatcher(function(FastRoute\RouteCollector $router) { | |
| $router->get('/products', function(){ | |
| return 'This route responds to requests with the GET method at the path /example'; | |
| }); | |
| }); |
| export default (enable = false) => { | |
| function log (type, ...args) { | |
| if (enable) { | |
| console[type](this.$_id, ...args, Date.now(), this.$el) | |
| } | |
| } | |
| return { | |
| created () { | |
| this.$_id = `${this.$options.name}-${this.$hashids.encode(Date.now())}` |
| const prefix = process.env.PREFIX | |
| const nodeEnv = process.env.NODE_ENV | |
| let logCounter = 0 | |
| let errorCounter = 0 | |
| let fatalCounter = 0 | |
| let warnCounter = 0 | |
| export const vLogger = { | |
| install (Vue, options) { |
| <?php | |
| try { | |
| $tr_elements = $crawler2->filterXPath('//table/tr'); | |
| $result = $crawler2->filter('#ctl00_ContentPlaceHolder1_dlResultados')->html(); | |
| $crawler3 = new Crawler($result); |
| data:()=> ({ | |
| tituloStatus:null, | |
| somenteLeitura:false, | |
| listaSistema: [], | |
| nomeListaPesquisa:'listaSistema', | |
| complementoUrlState:'perfil', | |
| descricaoState: 'Perfil', | |
| getterTempVuex: 'GET_PERFIL_TEMP', | |
| buscaBanco: 'perfis', | |
| perfil: { |
| export default function (value) { | |
| const formatted = Number(value) | |
| .toFixed(2) | |
| .replace('.', ',') | |
| .replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1.") | |
| return `R$ ${formatted}` | |
| } |
These are my notes basically. At first i created this gist just as a reminder for myself. But feel free to use this for your project as a starting point. If you have questions you can find me on twitter @thomasf https://twitter.com/thomasf This is how i used it on a Debian Wheezy testing (https://www.debian.org/releases/testing/)
Discuss, ask questions, etc. here https://news.ycombinator.com/item?id=7445545