Coder Social home page Coder Social logo

whimtrip / jwht-scrapper Goto Github PK

View Code? Open in Web Editor NEW
14.0 3.0 4.0 218 KB

Fully Featured Java Scrapping Framework, highly pluggable and customizable

License: MIT License

Java 100.00%
java scrapper scrapper-script scrapping framework html-parser html-parsing

jwht-scrapper's People

Contributors

louis-wht avatar louissdev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

jwht-scrapper's Issues

Headers from response

Hi, im currently parse website that require authentication for access to some content.
So I log in with browser, copy all created cookies and add them with each parse request.

    void editRequest(BoundRequestBuilder req, * *, * *) {
        cookieService.cookies.each { req.addCookie(it) }
    }

That works like a charm until website change cookies in response - short after this my cookies are invalid and we dont receive desired response.
When I was looking for access to the response headers information like "set-cookie", I found this:

public final class RequestCoreHandler

 public String getResponse() {
   response = resp.getResponseBody();
    **
    **
   return response;
}

As i see we dont have any access to response information therefore we can't react to website response changes by any way except of response body.

Can we have access to other response information? Because in our case - we need it to correct following parse requests by headers (set-cookie), received in response.
What do you think about it? (if you want me to change it by myself - give at least some advice please).

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.