Skip to content

Instantly share code, notes, and snippets.

View antoniocuga's full-sized avatar
🏴
I like the idea of hacking the planet

Antonio Cucho antoniocuga

🏴
I like the idea of hacking the planet
View GitHub Profile
beautifulsoup4==4.6.3
bs4==0.0.1
certifi==2018.8.24
chardet==3.0.4
idna==2.7
numpy==1.15.2
pandas==0.23.4
pkg-resources==0.0.0
python-dateutil==2.7.3
pytz==2018.5
@antoniocuga
antoniocuga / download_productos.py
Created October 2, 2018 17:46
Descarga de productos usando un screenscrapper con selenium webdriver, BeautifulSoup y Pandas.
from bs4 import BeautifulSoup as bs
import requests as rq
import json
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import pandas as pd
import time
base_path = "http://www.fischelenlinea.com/"
search_url = "Catalogo.aspx?Busqueda=Sqg&Categoria=Sqgnooj"
var parallaxUnivision = (function(){
//settings for parallax univision
var parallaxEngine = {},
parallaxSettings = {},
parallaxTriggers = [],
slideTriggers = [],
scrollY = -1,
scrollH = -1,
valid = 0;

Keybase proof

I hereby claim:

  • I am antoniocuga on github.
  • I am antoniocuga (https://keybase.io/antoniocuga) on keybase.
  • I have a public key whose fingerprint is B156 0CDE FF0F 4A57 EDD4 82F4 CE8B 68D5 3839 C7A2

To claim this, I am signing this object:

@antoniocuga
antoniocuga / nokogiri-example
Created February 16, 2015 22:29
Extract all politicians groups
require 'nokogiri'
require 'open-uri'
require 'csv'
//Save the content into CSV
CSV.open("partidos.csv", "w") do |csv|
csv << ['ruc','partido']
// 1 to 5, differents types of politicians groups
for i in 1...5