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

Special:Random does not work #34

Open
fts-tmassey opened this issue May 10, 2020 · 5 comments
Open

Special:Random does not work #34

fts-tmassey opened this issue May 10, 2020 · 5 comments

Comments

@fts-tmassey
Copy link

I'm using Wikit with things like no-more-secrets and lolcat to create random walls of text in new and unusual ways. I was using a selection of Wikipedia articles I'd typed in, but got the idea of using Wikipedia's Special:Random feature to try to get random pages. (Details here: https://en.wikipedia.org/wiki/Wikipedia:Special:Random)

Unfortunately, I get an error:

# wikit Special:random
⠙ Searching...wtf_wikipedia error: TypeError: Cannot read property '0' of undefined
Special:random not found :^(

This isn't exactly a vital thing, but I thought I'd post an issue to see if it interests anyone.

Either way, thank you for your interesting tool!

@KorySchneider
Copy link
Owner

Thanks for reporting, I will look into this when time permits. May wind up adding a --random flag.

@mfnalex
Copy link

mfnalex commented Nov 4, 2020

Any news on this?

@KorySchneider
Copy link
Owner

This has not been implemented yet. PRs welcome!

@mfnalex
Copy link

mfnalex commented Nov 4, 2020

I am sorry, I thought this issue was closed but it was just the linked issue that has been closed

for anyone interested: I am currently just using curl to get the redirect URL of the Random_Article page and use that for getting random articles. It's a very dirty solution but it's working^^

@pendragons-code
Copy link

I am sorry, I thought this issue was closed but it was just the linked issue that has been closed

for anyone interested: I am currently just using curl to get the redirect URL of the Random_Article page and use that for getting random articles. It's a very dirty solution but it's working^^

I get that this is a solution that is not the best, but it seems this repo is not maintained, you think you can make a PR? thank you!

@sanalzio sanalzio mentioned this issue May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants