-
Notifications
You must be signed in to change notification settings - Fork 534
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
Request: Restore download
option or equivalent?
#207
Comments
I also use this for downloading the raw HTML bytes for a page (without modification) to better handle some pages that have a mix of charsets in the page (eg where some content in the page is UTF8 and some is from windows-1252. Would be very useful to see it come back, |
I remove this feature since is not working with Puppeter + Firefox. There are 2 options:
|
I would suggest the second option is better:
|
This feature was removed, because it wasn't working with Puppeter + Firefox. |
I will revisit this in the next release. |
This comment was marked as spam.
This comment was marked as spam.
Just seeing if this is possible now, I see a couple of stack overflow responses which seem like you can adjust the arguments you pass to chrome. They will tell chrome to auto download files of a certain type ( Could we pass these, and then when the file is downloaded in the docker image, send the file either trough a curl response as binary data or maybe have it download to some mounted docker location? |
Is there at least a workaround until the feature gets implemented? I want to download jpeg files but no way. |
Per @acg5159's link above, you could try adding the following after L138 in utils.py, changing the file types and download directory as you want: options.add_argument("browser.download.folderList=2")
options.add_argument("browser.helperApps.neverAsk.saveToDisk=image/png")
options.add_argument("browser.download.dir=C:\\Users\\Public\\Downloads") As my home internet is currently being a dick, that is untested. Failing that, you could use a script to make the initial request with FlareSolverr, return the cookie, and then use the cookie for future curl requests in the script. |
Can we get the
download
option or an equivalent back? I use it with FanFicFare to download small cover images for stories.Environment
Description
download
option was removed, can't download images in v2.0.0.Example: https://www.fanfiction.net/image/6721098/180/
Logged Error Messages
N/A
Screenshots
N/A
The text was updated successfully, but these errors were encountered: