-
Notifications
You must be signed in to change notification settings - Fork 942
add explainxkcd.com to XKCD zero-click #21
Comments
+1 |
@gghh cool idea, care to implement? 😄 |
@hunterlang i'd love to. I am reading your doc for spice plugins. A few questions/remarks:
cheers, |
@gghh a clean way to do it would be to just have an "explanation" link along with the "Prev" links. See spice.js for how the Prev link is implemented. The xkcd API includes the month, year, and title of the comic, so if you normalize the title you can easily create links to the explainxkcd blog (provided they continue to use a consistent naming scheme). The only things I'm worried about here are the clutter vs. usability tradeoff, as we try to keep the ZCI box as clean as possible, and the broken links we'd have if they change their naming scheme over on the wordpress blog. To answer your question, http://dynamic.xkcd.com/ is xkcd's API url. We call it to get JSON results that are easily parse-able in JavaScript, as opposed to the HTML that's served from their regular site. |
@hunterlang thanks for the prompt reply. I see your points; no data retrieval, just link. |
@hunterlang the email has been sent. I am waiting for the answer; I will keep you posted! |
@hunterlang the explainxkcd site curator, Jeff, just replied me. He likes the idea and he's happy to collaborate. He confirmed that he names posts consistently with the comics. |
Hello @hunterlang, You can see I am quite high latency on this. I'd like to share my last findings on the ingredients ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ for i in {1..49}; do curl "http://www.explainxkcd.com/feed/?paged=$i" > "p$i.xml"; done and then, DDG should subscribe to EXKCD RSS feeds (it's a wordpress blog). == Long Version == I considered a "automatic" URL construction, w/o reading the RSS feeds, But this would require the assumption that Jeff (EXKCD) always did, So I believe that retrieving and caching/indexing the RSS feeds FYI: as of today, 49 pages of feeds are available (it goes back to 2006; Moreover, I remarked that Google Reader does cache that much; cheers |
Just saw this issue (I'm the dude who wrote the XKCD spice to start with). dynamic.xkcd.com is the server that provides XKCD's jsonp api. It was apparently created just to support the XKCD CLI interface but proved to be very easy to hook into. As for hooking in this functionality, it's a neat idea. I think if the explainxkcd guy is amenable to some modfication/support then absolute best thing would be to have something like explainxkcd.com/$xkcd_id do a 301 redirect to his actual page. It's been a while since I did Wordpress programming so I don't know how feasible it is to add custom routes. Parsing the RSS feed and trying to sync up the posts to the comics by title sounds like a brittle solution and I wouldn't recommend it. Hmm, even more interesting is that he's apparently converting to a wiki. Maybe we could ask him to be sure to setup XKCD# friendly urls? |
Ah, it looks like it's going to work out of the box. http://www.explainxkcd.com/wiki/index.php?title=1090 That 1090 is the XKCD#. So generating links to add to the xkcd results should be trivial for comics going forward (and it looks like he's asking for community support to backfill the older comics). |
thankyou @sdball for the heads up. That's absolutely better than the RSS thing. |
@gghh Still interested in this? :) |
@jagtalon sorry, no time. Feel free to close the issue. |
@gghh Thanks--we'll ask the community to see if anyone is interested. :) |
@jagtalon I'm interested...would a link in the "More at" bar be appropriate? |
This is actually much easier now that Explain xkcd has moved to a wiki. You only need to generate a link to eg http://www.explainxkcd.com/wiki/index.php/1392 |
@mattr555 I like that idea. @chrismorast What do you think of this idea? #21 (comment) |
@elebow Oh good! |
@chrismorast cool, check out #982. |
👍 |
Randall often writes comics that relate closely to the US cultural background, difficult to grasp for non-US folks. That's why the website http://www.explainxkcd.com popped up.
Would it be possible to obtain the explainations above for the XKCD zero-click search? I suggest to add a button like "didn't get the catch?" so that the explaination is optional, but still available.
Cheers,
The text was updated successfully, but these errors were encountered: