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

Example script for scraping specific response body #796

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Example script for scraping specific response body #796

wants to merge 1 commit into from

Conversation

liuyigh
Copy link

@liuyigh liuyigh commented Jul 25, 2018

Hi, I am first time splash and Lua user. I benefited from examples in the reference. But there was no reference for the on_response callback. I'd like to share my example.

It is useful to record certain response body only when requested url match a pattern.

The example demos on_request, request:enable_response_body, and on_response.

Thank you for considering. Feel free to revise it.

Best, Yi

only when requested url match a pattern
@codecov
Copy link

codecov bot commented Jul 25, 2018

Codecov Report

❗ No coverage uploaded for pull request base (master@3cba485). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #796   +/-   ##
=========================================
  Coverage          ?   87.49%           
=========================================
  Files             ?       41           
  Lines             ?     5645           
  Branches          ?      778           
=========================================
  Hits              ?     4939           
  Misses            ?      531           
  Partials          ?      175

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

Successfully merging this pull request may close these issues.

None yet

1 participant