Skip to content

Instantly share code, notes, and snippets.

View zehsilva's full-sized avatar

Eliezer Silva zehsilva

  • School of Applied Mathematics at Getulio Vargas Foundation (EMAP / FGV)
  • Rio de Janeiro, Brazil
  • X @sereliezer
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import urllib
import re
from subprocess import call
fp=urllib.urlopen("https://gist.githubusercontent.com/bishboria/8326b17bbd652f34566a/raw/c20ec05dc4669b93f16d0b5c5824615dea42a956/springer-free-maths-books.md")
for line in fp:
matchObj = re.match( r'.*\((.*.pdf)\)', line)
if matchObj:
f=matchObj.group(1)
print f
call(["wget", f])
@zehsilva
zehsilva / download-books-from-rss-springer.py
Last active October 12, 2019 15:30
Download books from Springer (RD) passing only the url of the search result or the book page to the script
#!/usr/bin/python
""" @copyleft Eliezer Silva (djosacv@gmail.com)
This script was developed mostly for recreative and educational purpose, so you use it on your own risk and as it is.
With this script you can crawl in springer book search results and download all the book listed in the page. This version also
checks if the result set includes many pages and navigate through those pages.
There's two ways of using it:
1) Link to a single book ulr in springer page:
python download-books-from-rss-springer.py 'http://rd.springer.com/book/10.1007/978-3-662-07003-1'
2) Link to a search result with many books:
@zehsilva
zehsilva / best_two_passports.ipynb
Created March 30, 2017 04:07
best_two_passports.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zehsilva
zehsilva / when-will-geoff-hinton-become-most-cited-academic-based-on-google-scholar-data.ipynb
Created September 13, 2019 13:26
when will geoff hinton become most cited academic (based on google scholar data)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zehsilva
zehsilva / when-will-geoff-hinton-become-most-cited-academic-based-on-google-scholar-data.ipynb
Last active September 25, 2019 17:16
when will geoff hinton become most cited academic (based on google scholar data)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zehsilva
zehsilva / iq_us_colleges.ipynb
Created January 16, 2020 04:31
iq_us_colleges.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zehsilva
zehsilva / continents.json
Created March 26, 2022 21:21 — forked from indexzero/continents.json
Where in the world is a good JSON mapping of all continents?
{
"Afghanistan": "Asia",
"Aland Islands": "Europe",
"Albania": "Europe",
"Algeria": "Africa",
"Andorra": "Europe",
"Angola": "Africa",
"Anguilla": "North America",
"Antigua and Barbuda": "North America",
"Argentina": "South America",
@zehsilva
zehsilva / br_confs.ipynb
Last active November 23, 2022 00:50
br_confs.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.