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

Fetching an array fails if there's a full URL #416

Open
Vacilando opened this issue Jan 5, 2021 · 2 comments
Open

Fetching an array fails if there's a full URL #416

Vacilando opened this issue Jan 5, 2021 · 2 comments
Labels

Comments

@Vacilando
Copy link

Consider wtf.fetch(wikiArticles)

For
wikiArticles = https://en.wikipedia.org/wiki/Cosmology'
the Cosmology page is fetched.

For

wikiArticles = [
  'Richard P. Feynman',
  'Thor Heyerdahl',
  'https://en.wikipedia.org/wiki/Cosmology',
]

only the Richard Feynman and Thor Heyerdahl pages get fetched.

For

wikiArticles = [
  'https://en.wikipedia.org/wiki/Cosmology',
  'Richard P. Feynman',
  'Thor Heyerdahl',
]

nothing gets fetched.

@spencermountain
Copy link
Owner

hey @Vacilando yeah, sorry about that. That's pretty gross.
I'm working on a wtf-api-plugin on the dev branch that may help with your work. It will rate-limit large arrays, and should improve this sort of workflow.
May be a few weeks out still.
What are you working on?
cheers

@Vacilando
Copy link
Author

I'll use titles instead of URLs for the time being.
But it's a serious bug indeed; it will help us and certainly many others when this gets fixed. Thanks a million for looking into that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants