Skip to content

Instantly share code, notes, and snippets.

View Pedro-Souza's full-sized avatar
🌂
Working from home

Pedro? Pedro-Souza

🌂
Working from home
View GitHub Profile
{
// Place your settings in this file to overwrite the default settings
"editor.tabSize": 2,
"emmet.triggerExpansionOnTab": false,
"emmet.includeLanguages": {
"javascript": "javascriptreact",
"erb": "html"
},
"[javascript]": {
"editor.formatOnSave": false
//main.js
import Vue from 'vue'
import Vuex from 'vuex';
import App from './App.vue'
import store from './store'
Vue.config.productionTip = false
Vue.use(Vuex)
# -*- coding=utf -*-
import requests
from bs4 import BeautifulSoup
from time import sleep
headers = {'user-agent': 'Mozilla/5.0 (Linux; U; Android 4.4.2; en-us; SCH-I535 Build/KOT49H)'}
""" Parte do código que pega o número. Falta fazer regex para pegar na descrição.
html = requests.get('https://m.olx.com.br/anuncio?ad_id=535973394')
test = BeautifulSoup(html.content)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
* {
margin: 0px;
}
.images {
background: #001845;
width: 100%;
height: 150px;
}
./test/test_util.py:6:1: F401 'arky.cli' imported but unused
./test/test_util.py:25:1: E101 indentation contains mixed spaces and tabs
./arky/util.py:79:2: E722 do not use bare except'
./arky/util.py:113:101: E501 line too long (107 > 100 characters)
./arky/util.py:124:101: E501 line too long (102 > 100 characters)
./arky/util.py:142:101: E501 line too long (102 > 100 characters)
./arky/util.py:240:101: E501 line too long (111 > 100 characters)
./arky/util.py:241:2: E722 do not use bare except'
./arky/util.py:260:4: E722 do not use bare except'
./arky/util.py:279:4: E722 do not use bare except'
#EXTM3U
#EXTINF:-1 group-title=".:LUCAS AMARAL:.",.:Lista criada por Lucas Amaral:.
#EXTINF:-1 group-title="ATUALIZADA (22/01/18)",Atualizada (22/01/18)
#EXTINF:-1 group-title="LUCAS",AD ALMADA TV
http://188.165.216.211:1935/adalmada/adalmada.stream/live.m3u8
#EXTINF:-1 group-title="LUCAS",ADINET TV
from typing import List
Vector = List[float]
def somar(multi: float, vetor: Vector) -> Vector:
return [multi * i for i in vetor]
result: List[float] = somar(2.0, [1,2,3,4,5])
def teste(parametro: str) -> str:
return f"hello {parametro}"
<template>
<div id="hello">
<div class="login-wrapper columns">
<div class="column is-4">
<section class="hero is-fullheight">
<div class="hero-body">
<div class="container">
<div class="columns">
<div class="column is-8 is-offset-2">
<div class="login-form">