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
{ | |
"version": 2, | |
"width": 700, | |
"height": 300, | |
"data": [ | |
{ | |
"name": "table", | |
"values": [ | |
{"year":1907,"population":51815}, | |
{"year":2011,"population":310956}, |
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
date | close | |
---|---|---|
1907-01-01 | 51815 | |
2011-01-01 | 310956 | |
2017-01-01 | 269022 |
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
# coding: utf8 | |
# | |
# Copyright (c) 2016 Sergey Leschina (putnik) <mail@putnik.tech> | |
# | |
# This work is free. You can redistribute it and/or modify it under the | |
# terms of the Do What The Fuck You Want To Public License, Version 2, | |
# as published by Sam Hocevar. See http://www.wtfpl.net/ for more details. | |
import pywikibot | |
from pywikibot import pagegenerators |
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
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
import ijson | |
import gzip | |
f = gzip.open('wikidata-all.json.gz', 'rb') | |
for item in ijson.items(f, 'item'): |
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
# -*- coding: utf-8 -*- | |
from BeautifulSoup import BeautifulSoup as Soup | |
from soupselect import select | |
from dateutil.parser import parse | |
import tweepy | |
import urllib2 | |
import HTMLParser | |
import time | |
import re |
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
# -*- coding: utf-8 -*- | |
from BeautifulSoup import BeautifulSoup as Soup | |
from soupselect import select | |
from dateutil.parser import parse | |
import tweepy | |
import urllib2 | |
import HTMLParser | |
import time | |
import re |
NewerOlder