Skip to content

Instantly share code, notes, and snippets.

View reulison's full-sized avatar
💭
Still learning

Réulison Silva reulison

💭
Still learning
View GitHub Profile
@reulison
reulison / web-scraping-python.py
Last active April 25, 2024 13:05
Web Scraping com Python e BeautifulSoup
import urllib.request
from bs4 import BeautifulSoup
wiki = 'https://pt.wikipedia.org/wiki/Lista_de_capitais_do_Brasil_por_%C3%A1rea'
page = urllib.request.urlopen(wiki)
soup = BeautifulSoup(page, 'html.parser')
table = soup.find('table')
A=[]
B=[]
@reulison
reulison / AMP Google Tag Manager
Created May 3, 2017 22:25
Configurando o acompanhamento das páginas AMP com o Google Tag Manager (Gerenciador de Tags do Google)
<amp-analytics config="https://www.googletagmanager.com/amp.json?id=GTM-XXXXX&gtm.url=SOURCE_URL" data-credentials="include">
<script type="application/json">
{
"vars": {
"var1": "val1", "var2": "val2"
}
}
</script>
</amp-analytics>
@reulison
reulison / AMP Analytics
Created May 3, 2017 22:12
Configurando o Google Analytics para monitorar as páginas AMP
<amp-analytics type="googleanalytics">
<script type="application/json">
{
"vars": {
"account": "UA-XXXXX-Y"
},
"triggers": {
"trackPageview": {
"on": "visible",
"request": "pageview"