-
Notifications
You must be signed in to change notification settings - Fork 107
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
INFO: How to scrape a API using POST method calls #95
Comments
You can create a custom fetcher that uses the Poison.post function and then override settings in the spider. |
Thanks for the response as I am new to Elixir and never used crawly would you happen to have a sample. I can there are plenty of samples around scrapping website but none covering this use case. |
Fetcher docs: https://hexdocs.pm/crawly/Crawly.Fetchers.Fetcher.html#content Example fetcher: https://github.com/oltarasenko/crawly/blob/master/lib/crawly/fetchers/httpoison_fetcher.ex override_settings callback: https://hexdocs.pm/crawly/Crawly.Spider.html#c:override_settings/0 override_settings example: https://github.com/oltarasenko/crawly/blob/7bf04b0f23e02c9bc7c5b12dc962efb25ca88371/test/settings_test.exs#L47 |
@oltarasenko i am looking for fetching data from APIs not in websites which could be using POST. As I want to use same tool to consistently use to collect data from websites and APIs and Crawly looks to be a great tool to achieve this |
I would assume this is resolved now. Please re-open if it's not the case! |
How to scrape a API using POST method calls, are there any examples or docs. Any sample code would be nice. Thanks
The text was updated successfully, but these errors were encountered: