We can't make this file beautiful and searchable because it's too large.
This file contains hidden or 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
| url,tagname,tagcount | |
| "http://3dprinting.StackExchange.com/tags/101-hero|3dprinting","101-hero","1" | |
| "http://3dprinting.StackExchange.com/tags/123d-catch|3dprinting","123d-catch","2" | |
| "http://3dprinting.StackExchange.com/tags/2d|3dprinting","2d","4" | |
| "http://3dprinting.StackExchange.com/tags/3d-design|3dprinting","3d-design","131" | |
| "http://3dprinting.StackExchange.com/tags/3d-models|3dprinting","3d-models","152" | |
| "http://3dprinting.StackExchange.com/tags/3d-pen|3dprinting","3d-pen","1" | |
| "http://3dprinting.StackExchange.com/tags/3d-printerworks|3dprinting","3d-printerworks","1" | |
| "http://3dprinting.StackExchange.com/tags/3dtouch|3dprinting","3dtouch","2" | |
| "http://3dprinting.StackExchange.com/tags/abs|3dprinting","abs","66" |
This file contains hidden or 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
| handle | count | |
|---|---|---|
| @20min | 394346 | |
| @nzz | 393044 | |
| @blickch | 249295 | |
| @blickamabend | 183293 | |
| @tagesanzeiger | 178033 | |
| @watson_news | 118861 | |
| @Lematinch | 102817 | |
| @tdgch | 88920 | |
| @24heuresch | 66644 |
This file contains hidden or 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/env python | |
| # coding=utf-8 | |
| ignore_list = ('Search-Navigation','Tools-What links','Top-','Contents','Magyar') | |
| with open('AcronymsFile.csv','r') as inp: | |
| data = inp.read().split('\n') | |
| with open('clean_AcronymsFile.csv','w') as out: | |
| out.write('acronym'+'\t'+'definition'+'\n') |
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 1 column, instead of 2 in line 6.
This file contains hidden or 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
| acronym definition | |
| 0D Zero-dimensional | |
| 1AM Air mechanic 1st class | |
| 1D One-dimensional | |
| 2AM Air mechanic 2nd class | |
| 2D Two-dimensional | |
| 2G Second-generation mobile (cellular, wireless) telephone system | |
| 2LA Two letter acronym | |
| 2Lt 2nd lieutenant | |
| 3AM Air mechanic 3rd class |
This file contains hidden or 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 requests | |
| import pandas as pd | |
| import os | |
| from io import StringIO | |
| def request_function(domain): | |
| domain = domain.replace('/','') | |
| url = 'https://www.google.com/s2/favicons?domain=' + domain | |
| fav = requests.get(url).content | |
| with open('images'+os.sep+domain+'.png', 'wb') as handler: |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| # requires python3.x and one non-standard module `pip install pdfrw` | |
| # pdfs should be in folder relative to this code, named `pdfs` | |
| import os | |
| from pdfrw import PdfReader, PdfWriter | |
| from glob import glob | |
| import unicodedata | |
| def edit_title_metadata(inpdf): |
This file contains hidden or 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 | |
| # gets demographics for nobel prize winners | |
| # calculates yearly average of how many years between prize and death | |
| import pandas as pd | |
| import numpy as np | |
| # api endpoint for all nobel winnters: https://nobelprize.readme.io/ | |
| url = 'http://api.nobelprize.org/v1/laureate.csv' |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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/env python3 | |
| import requests | |
| from bs4 import BeautifulSoup | |
| import json | |
| def main(): | |
| # the answers are stored as a json inside the page source | |
| url = 'https://www.nytimes.com/puzzles/spelling-bee' |