Jump to content

Main Page: Difference between revisions

From Archive
No edit summary
No edit summary
Line 17: Line 17:
== [[Meta]] ==
== [[Meta]] ==
How this archive works, why it exists, and how to navigate it
How this archive works, why it exists, and how to navigate it
== MediaWiki API ==
''JSON from the archive for automation''
=== Basic Calls ===
<pre>
# Get page content
curl "https://archive.ejfox.com/api.php?action=query&format=json&titles=Projects&prop=revisions&rvprop=content"
# List category
curl "https://archive.ejfox.com/api.php?action=query&format=json&list=categorymembers&cmtitle=Category:Projects"
# Search
curl "https://archive.ejfox.com/api.php?action=query&format=json&list=search&srsearch=election"
</pre>
==== Useful Stuff ====
<pre>
# Recent changes
curl "https://archive.ejfox.com/api.php?action=query&format=json&list=recentchanges&rclimit=10" | jq -r '.query.recentchanges[].title'
# Missing pages (knowledge gaps)
curl "https://archive.ejfox.com/api.php?action=query&format=json&list=querypage&qppage=Wantedpages" | jq -r '.query.querypage.results[].title'
# What links to this page
curl "https://archive.ejfox.com/api.php?action=query&format=json&list=backlinks&bltitle=Technical" | jq -r '.query.backlinks[].title'
# Archive stats
curl "https://archive.ejfox.com/api.php?action=query&format=json&meta=siteinfo&siprop=statistics" | jq '.query.statistics'
</pre>


----
----


''Updated from terminal & mobile • Cross-referenced & searchable • Living memory''
''Updated from terminal & mobile • Cross-referenced & searchable • Living memory''

Revision as of 02:42, 29 May 2025

Technical

CLI workflows, data processing scripts, and solutions worth remembering

Personal APIs

Personal APIs to reuse the panopticon for my own means

Dataviz

D3 experiments, Observable notebooks, and visualization techniques

Journalism

Investigation methods, source management, and story development

Projects

Work logs, collaboration notes, and things in progress

Meta

How this archive works, why it exists, and how to navigate it

MediaWiki API

JSON from the archive for automation

Basic Calls

# Get page content
curl "https://archive.ejfox.com/api.php?action=query&format=json&titles=Projects&prop=revisions&rvprop=content"

# List category 
curl "https://archive.ejfox.com/api.php?action=query&format=json&list=categorymembers&cmtitle=Category:Projects"

# Search
curl "https://archive.ejfox.com/api.php?action=query&format=json&list=search&srsearch=election"

Useful Stuff

# Recent changes
curl "https://archive.ejfox.com/api.php?action=query&format=json&list=recentchanges&rclimit=10" | jq -r '.query.recentchanges[].title'

# Missing pages (knowledge gaps)
curl "https://archive.ejfox.com/api.php?action=query&format=json&list=querypage&qppage=Wantedpages" | jq -r '.query.querypage.results[].title'

# What links to this page
curl "https://archive.ejfox.com/api.php?action=query&format=json&list=backlinks&bltitle=Technical" | jq -r '.query.backlinks[].title'

# Archive stats
curl "https://archive.ejfox.com/api.php?action=query&format=json&meta=siteinfo&siprop=statistics" | jq '.query.statistics'



Updated from terminal & mobile • Cross-referenced & searchable • Living memory