Giter Club home page Giter Club logo

Comments (6)

Ziinc avatar Ziinc commented on May 14, 2024 3

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

from crawly.

Ziinc avatar Ziinc commented on May 14, 2024

You can create a custom fetcher that uses the Poison.post function and then override settings in the spider.

from crawly.

ahsandar avatar ahsandar commented on May 14, 2024

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.

from crawly.

oltarasenko avatar oltarasenko commented on May 14, 2024

@Ziinc thanks for helping!

@ahsandar But why do you need to use POST requests? Otherwise, if it's about fetching ajax parts of your page, you could try to use the browser rendering approach!

from crawly.

ahsandar avatar ahsandar commented on May 14, 2024

@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

from crawly.

oltarasenko avatar oltarasenko commented on May 14, 2024

I would assume this is resolved now. Please re-open if it's not the case!

from crawly.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.