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 scrapy, json | |
from scrapy.crawler import CrawlerProcess | |
class BookSpider(scrapy.Spider): | |
name = "freebooks" | |
start_urls = ['http://libros.csic.es/freebooks.php'] | |
def parse(self, response): | |
# Because the HTML is malformed the links of the books are extracted with regular expressions | |
urls = list(set(response.css("#principal").re("http://libros.csic.es/product_info.php\?products_id=[0-9]+"))) |
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
/* | |
To test it you need to extract the database of the application and execute the | |
SQL statements in an external program or from Android with the following command | |
(it is assumed that the device is rooted): | |
sqlite3 /data/data/com.gabrielittner.timetable/databases/timetable.db < timetable2ical.sql | |
*/ | |
CREATE temporary TABLE weekdays ('day' INTEGER, 'short_name' CHAR, 'long_name' VARCHAR); | |
insert into weekdays values('1', 'MO', 'Monday'); | |
insert into weekdays values('2', 'TU', 'Tuesday'); |
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
Nombre | Sumario | Movido a | |
---|---|---|---|
abbaye-for-linux | Linux port of indie game Abbaye des Morts | ||
advanced-buddy-search-perl-pidgin | Advanced Buddy Search Perl Pidgin | http://www.coder-world.de/ | |
akernelloader | Develope a Simple boot loader | ||
altdrag | Easily drag windows when pressing the alt key | https://stefansundin.github.io/altdrag/ | |
amarino | Android meets Arduino | ||
android-apktool | A tool for reverse engineering Android apk files | http://ibotpeaches.github.io/Apktool/ | |
android-x86 | An open source project to provide android support on x86 | ||
androidscreencast | Desktop app to control an android device remotely | ||
androino | connect your mobile to real world objects |
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 3 columns, instead of 1. in line 6.
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
Imagen,Tamaño (en bytes),Articulo | |
https://andalinux.files.wordpress.com/2016/08/malware-bancos-android.png?w=646,131159,https://andalinux.wordpress.com/2016/08/23/la-banca-adalid-de-la-seguridad-xd/ | |
https://andalinux.files.wordpress.com/2016/09/firefox-screenshots.png?w=646,14784,https://andalinux.wordpress.com/2016/09/20/genial-capturas-con-scroll-en-firefox-sin-usar-extensiones/ | |
https://dl.dropboxusercontent.com/u/9954917/articulos/configurar-web-developer-firefox.png,33088,https://andalinux.wordpress.com/2016/09/20/genial-capturas-con-scroll-en-firefox-sin-usar-extensiones/ | |
https://dl.dropboxusercontent.com/u/9954917/articulos/enable-fullpage-screenshot.png,44710,https://andalinux.wordpress.com/2016/09/20/genial-capturas-con-scroll-en-firefox-sin-usar-extensiones/ | |
https://dl.dropboxusercontent.com/u/9954917/articulos/enable-firefox-screenshots.png,27535,https://andalinux.wordpress.com/2016/09/20/genial-capturas-con-scroll-en-firefox-sin-usar-extensiones/ | |
https://andalinux.files.wordpress.com/2014/03/pirate |
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
#!/bin/bash | |
file2base64 () { | |
# Si es una archivo de internet, entonces se descarga temporalmente y luego se borra | |
if [[ "$1" =~ ^https?:// ]]; then | |
ubicacion="/tmp/imagen-temporal"; | |
wget -q -O $ubicacion $1; | |
echo 'data:'$(file --mime-type -b $ubicacion)";base64,"$(base64 -w0 $ubicacion); | |
rm -f $ubicacion > /dev/null; | |
else # De lo contrario se asume que es un archivo local | |
# Se utilizan los comandos file para obtener el tipo de archivo y base64 para codificarlo en ese formato |
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
# need BeautifulSoup2 | |
from BeautifulSoup import BeautifulSoup as bs | |
balance=0.0 | |
for direccion in direcciones: | |
sopa = bs(getter("http://blockexplorer.com/address/%s" % direccion)) | |
tabla = sopa.find("table", {"class":"txtable"}) | |
fila = tabla.findAll("tr")[-1] | |
celdas = fila.findAll("td") | |
if celdas != []: |
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
# Parche para el script ejecutable de xpath. Aplíquese en Gentoo o en cualquier | |
# instalación cuyo hash de archivo sea acb44c08365e33b1bd0feab421c75167 (se comprueba | |
# con "md5sum /ruta/hacia/xpath") | |
# | |
# Como aplicarlo | |
# ============== | |
# wget https://gist.githubusercontent.com/aaferrari/2bee720d1b8bac7a09ee/raw/parche_xpath.diff\ | |
# && sudo patch /usr/bin/xpath parche_xpath.diff | |
# | |
# Como revertirlo |
NewerOlder