View 20898769.editor-pkg.xml
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
<?xml version="1.0" encoding="UTF-8"?> | |
<rdf:RDF xmlns:bf="http://id.loc.gov/ontologies/bibframe/" xmlns:bflc="http://id.loc.gov/ontologies/bflc/" xmlns:lclocal="http://id.loc.gov/ontologies/lclocal/" xmlns:madsrdf="http://www.loc.gov/mads/rdf/v1#" xmlns:pmo="http://performedmusicontology.org/ontology/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:streams="info:lc/streams#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<bf:Instance rdf:about="http://id.loc.gov/resources/instances/20898769"> | |
<rdf:type rdf:resource="http://id.loc.gov/ontologies/bibframe/Print"/> | |
<bf:issuance> | |
<bf:Issuance rdf:about="http://id.loc.gov/vocabulary/issuance/mono"/> | |
</bf:issuance> | |
<bf:provisionActivity> | |
<bf:ProvisionActivity> | |
<rdf:type rdf:resource="http://id.loc.gov/ontologies/bibframe/Publication"/> |
View google.py
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 requests | |
import json | |
source_data = json.load(open('data.json')) | |
url = 'https://maps.googleapis.com/maps/api/geocode/json' |
View extract.py
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 requests | |
import shutil | |
import camelot.io as camelot | |
import os | |
from PyPDF2 import PdfFileReader, PdfFileWriter | |
for year in range(2011,2017): | |
url = f'https://files.dep.state.pa.us/Waste/Recycling/RecyclingPortalFiles/Documents/{year}_Recycling_Report.pdf' |
View extract.py
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 glob | |
from bs4 import BeautifulSoup | |
import json | |
all_files = list(glob.glob('html/*.html')) | |
all_data = [] | |
for file_name in all_files: | |
with open(file_name) as infile: |
View extract.py
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 glob | |
import json | |
urls = {} | |
for file in glob.glob('data_sogb/*'): | |
with open(file) as inf: |
View artgarfunkle.py
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 waybackpy | |
urls = [ | |
"http://dmc.signourguestbook.com/?username=dmc&trail=25", | |
"http://dmc.signourguestbook.com/?username=dmc&trail=50", | |
"http://dmc.signourguestbook.com/?username=dmc&trail=75", | |
"http://dmc.signourguestbook.com/?username=dmc&trail=100", | |
"http://dmc.signourguestbook.com/?username=dmc&trail=125", | |
"http://dmc.signourguestbook.com/?username=dmc&trail=150", | |
"http://dmc.signourguestbook.com/?username=dmc&trail=175", |
View gist:a4410ce29c5e56621c9f2f6ca103bf84
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
{ | |
"id": "lc:RT:bf2:MIBluRayDVD:Instance", | |
"propertyTemplates": [ | |
{ | |
"mandatory": "false", | |
"propertyLabel": "Instance Of", | |
"propertyURI": "http://id.loc.gov/ontologies/bibframe/instanceOf", | |
"repeatable": "false", | |
"resourceTemplates": [], | |
"type": "resource", |
View gist:bbd002901c8474db3be80cb22207fbd8
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
{ | |
"russcarnahan.com": 16, | |
"secure.actblue.com": 13, | |
"secure.piryx.com": 6, | |
"services.myngp.com": 5, | |
"rickperry.org": 5, | |
"secure.mydccc.org": 5, | |
"markleyva.com": 4, | |
"clyburnforcongress.com": 4, | |
"johnsprattforcongress.com": 4, |
View gist:18db2d2135a6fecd2619c6c922cb21e2
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
<div><strong>imdb_id1</strong>: <a href="/movie/<%=imdb_id1%>"><%=imdb_id1%></a></div> | |
<div><strong>color1</strong>: <%=color1%></div> | |
<div><strong>director_name1</strong>: <%=director_name1%></div> | |
<div><strong>num_critic_for_reviews1</strong>: <%=num_critic_for_reviews1%></div> | |
<div><strong>duration1</strong>: <%=duration1%></div> | |
<div><strong>director_facebook_likes1</strong>: <%=director_facebook_likes1%></div> | |
<div><strong>actor_3_facebook_likes1</strong>: <%=actor_3_facebook_likes1%></div> | |
<div><strong>actor_2_name1</strong>: <%=actor_2_name1%></div> | |
<div><strong>actor_1_facebook_likes1</strong>: <%=actor_1_facebook_likes1%></div> | |
<div><strong>gross1</strong>: <%=gross1%></div> |
View ch_sparql.py
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 requests | |
import json | |
url = "http://data.carnegiehall.org/sparql/" | |
sparql = """ | |
#Find works by string in the title (case-insensitive) | |
PREFIX dcterms: <http://purl.org/dc/terms/> | |
PREFIX foaf: <http://xmlns.com/foaf/0.1/> | |
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> |
NewerOlder