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 json | |
import csv | |
# Identify the JSONL fields we wish to retrieve and write | |
# to the CSV file. | |
fields = ['id','title','text','url'] | |
# Open a new CSV file and open the existing JSONL file. | |
with open('pages.csv', 'w') as csv_file, open("pages.jsonl", "r") as json_file: | |
# Create a CSV writer object. |
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"?> | |
<div xmlns="http://www.w3.org/1999/xhtml" id="rhyme" style="display:none;"><div id="rhymespacer"> </div><form name="abbaabbacdcdcd" id="rhymeform" autocomplete="off"><p><br/></p><div class="lrhyme"><input size="1" maxlength="1" value="" name="lrhyme-1-1" type="text" onFocus="this.value='';this.style['color'] = '#44FFFF';"/></div><div class="lrhyme"><input size="1" maxlength="1" value="" name="lrhyme-1-2" type="text" onFocus="this.value='';this.style['color'] = '#44FFFF';"/></div><div class="lrhyme"><input size="1" maxlength="1" value="" name="lrhyme-1-3" type="text" onFocus="this.value='';this.style['color'] = '#44FFFF';"/></div><div class="lrhyme"><input size="1" maxlength="1" value="" name="lrhyme-1-4" type="text" onFocus="this.value='';this.style['color'] = '#44FFFF';"/></div><div class="lrhyme"><input size="1" maxlength="1" value="" name="lrhyme-1-5" type="text" onFocus="this.value='';this.style['color'] = '#44FFFF';"/></div><div class="lrhyme"><input size="1" maxlength="1" value="" |
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 | |
from bs4 import BeautifulSoup | |
headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:121.0) Gecko/20100101 Firefox/121.0'} | |
page_url = 'https://example.com' | |
page_text = requests.get(page_url,headers=headers).text | |
soup = BeautifulSoup(feed_text); | |
print(soup); |
- Chapter Two: Meet the Elements in Elements of User Experience by Jesse James Garrett.
- The Shape of Design by Frank Chimero
- Visualizing Information for Advocacy
Jekyll
- Pandemic Academy (Github) was a modest attempt to create a website from a group bibliography, in collaboration with Alison.
- Jekyll Scholar, a gem that provides tools for mixing blogging and scholarly activity (e.g. citation, bibliography)
- jekyll-ld, a gem for parsing various Linked Data attributed in a Jekyll site.
- rzotero, early (and not up-to-date) Ruby wrapper for the Zotero API.
Python
NewerOlder