Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P5084
(An Untitled Masterwork)
Active
Public
Actions
Authored by
EBernhardson
on Mar 20 2017, 5:28 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F6777668:
Mar 20 2017, 5:28 PM
2017-03-20 17:28:32 (UTC+0)
Subscribers
None
# Find url from logstash:
es.wikipedia.org/w/api.php?action=query&format=json&prop=pageprops%7Cpageprops%7Cpageimages%7Cpageterms&generator=prefixsearch&ppprop=displaytitle&piprop=thumbnail&pithumbsize=80&pilimit=15&wbptterms=description&redirects=&gpssearch=Co&gpsnamespace=0&gpslimit=15
# Load up mwrepl
mwrepl eswiki
# Create a request context
parse_str('action=query&format=json&prop=pageprops%7Cpageprops%7Cpageimages%7Cpageterms&generator=prefixsearch&ppprop=displaytitle&piprop=thumbnail&pithumbsize=80&pilimit=15&wbptterms=description&redirects=&gpssearch=Co&gpsnamespace=0&gpslimit=15', $query_params);
$ctx = new RequestContext();
$ctx->setRequest(new FauxRequest($query_params))
# Run the request:
(new ApiMain($ctx))->execute();
Event Timeline
EBernhardson
created this paste.
Mar 20 2017, 5:28 PM
2017-03-20 17:28:32 (UTC+0)
Log In to Comment