-
Notifications
You must be signed in to change notification settings - Fork 124
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
XKCD Parser - If a number is passed in, it should query that specific number #245
Comments
I've got an update which I'll submit which follows these rules; // if no parameters, display latest |
@ajcooper72 I've assigned it to you in attempt to avoid future conflicts. Let me know if you're not happy with it 😊 |
works:
doesn't work:
|
I'll have a look! |
@earlduque there's an issue with the terms not been encoded in the URI which I can fix. As for the quality of the search results, explainxkcd returns two sets of results, page title and page text. Page text, especially when you introduce words like 'of' become quite random. We could just take the page title results and randomise those? |
I'm down for whatever peeps think best lol ¯_(ツ)_/¯ |
The latest release 'fixes' the search results for random. Given a search term, it removes any insignificant words (if, on, an etc) and them performs the search. The results found in Page Title are prioritised over Page Text. This is not a perfect solution, but fixes the use cases put forward across the various issues raised. As this issue was regarding pulling the comic number, I would consider this issue closed. |
for whatever reason
!xkcd 2834
returned https://xkcd.com/283/ as a result and left off the 4. The 4 was important!The text was updated successfully, but these errors were encountered: