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 selenium import webdriver | |
driver = webdriver.Firefox() | |
driver.get("http://www.python.org") | |
assert "Python" in driver.title | |
driver.quit() |
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
<!DOCTYPE html> | |
<html lang="pt-BR"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Cache Busting - Hash de CSS e JS (MOA)</title> | |
<!--Exemplo para ajudar o River 04/05/2023--> | |
<!--Ponto de Melhoria: Daria para usar o "setTimeout" para controlar o tempo de execução da função de hash--> |
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 csv | |
import requests | |
import time | |
from datetime import datetime | |
from bs4 import BeautifulSoup | |
url = 'https://www.fundsexplorer.com.br/ranking' | |
#Libs necessárias: | |
# pip install requests |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
<style> | |
.container{ position: relative; height:500px; } | |
.container img{ position: absolute; left:0; top:0; width:100%; max-height: 600px; opacity: 0; transition:1s; object-fit: cover; z-index: -1; } |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Manipulação de DOM</title> | |
</head> | |
<style> | |
.content span { |
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
# Com biblioteca: pip install pycpfcnpj | |
# https://github.com/matheuscas/pycpfcnpj | |
from pycpfcnpj import cpfcnpj | |
cpf_number = '11144477735' | |
masked_cpf_number = '111.444.777-35' | |
cnpj_number = '11444777000161' | |
masked_cnpj_number = '11.444.777/0001-61' |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title></title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href=""> |
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
<div class="contagem"> | |
Faltam apenas | |
<mark><span class="numero" id="days"></span> DIAS, <span id="hours"></span> HORAS, | |
<span class="numero" id="minutes"></span> MINUTOS</mark> E <mark><span class="numero" id="seconds"></span> SEGUNDOS</mark> | |
</div> | |
<script> | |
var countDownDate = new Date("Aug 02, 2021 20:00:00").getTime(); | |
var countdown = setInterval(function() { |
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
<div class="contagem"> | |
Faltam apenas | |
<mark><span class="numero" id="dia"></span> DIAS, <span id="hora"></span> HORAS, | |
<span class="numero" id="minuto"></span> MINUTOS</mark> E <mark><span class="numero" id="segundo"></span> SEGUNDOS</mark> | |
</div> | |
<script> | |
var target_date = new Date("aug 02, 2021 20:00:00").getTime(); | |
var dias, horas, minutos, segundos; | |
var regressiva = document.getElementById("regressiva"); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<link href="" rel="stylesheet" type="text/css" /> | |
</head> | |
<style> | |
select { |
NewerOlder