add support for scraping with surf (tls impersonation)#6806
Draft
feederbox826 wants to merge 1 commit intostashapp:developfrom
Draft
add support for scraping with surf (tls impersonation)#6806feederbox826 wants to merge 1 commit intostashapp:developfrom
feederbox826 wants to merge 1 commit intostashapp:developfrom
Conversation
|
This pull request has been mentioned on Stash Forum. There might be relevant details there: https://discourse.stashapp.cc/t/jav-english-scraper-how-do-i-get-it-to-work/6669/8 |
Member
Author
|
needs golang version bump, will wait for other backend merges to hit, but would help greatly simplify scrapers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
adds https://github.com/enetx/surf support
this will let us bypass basic bot detection tests and hopefully the amount of external python dependencies. This will likely succeed even where cloudscraper fails
It is not documented, just a proof of concept and if the concept/implementation needs work
can be tested with https://github.com/feederbox826/scrapers/blob/main/scrapers/tls-fprint.yml
add
you can look up the returned fingerprint at https://ja3.zone/
expected peetprint is
1d4ffe9b0e34acac0bd883fa7f79d7b5Code was sloppily done by copying above implementation and combining it with surf readme. User-Agent is explicitly dropped since it would defeat our anti-fingerprinting efforts and other headers excluded (open for discussion)