Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to retrieve ExplainXKCD entry #6

Open
nogarcia opened this issue Apr 22, 2019 · 1 comment
Open

Add option to retrieve ExplainXKCD entry #6

nogarcia opened this issue Apr 22, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@nogarcia
Copy link
Owner

XKCD can get pretty meta. I'd like to get an explanation.
This would require some web-scraping, which can get kludgy really quickly.

@nogarcia
Copy link
Owner Author

I found out MediaWiki has an option to retrieve the wiki page text in raw form. A request to https://explainxkcd.com/wiki/index.php/614:_Woodpecker?action=raw returns

[comic 
...

I could iterate through each line and cut out everything outside the Transcript.

@nogarcia nogarcia added the enhancement New feature or request label Apr 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant