lofter1 / anyflip-downloader Goto Github PK
View Code? Open in Web Editor NEWDownload anyflip books as PDF
License: GNU General Public License v3.0
Download anyflip books as PDF
License: GNU General Public License v3.0
Hi,
unfortunately the install script doesn't work for me. I get a message on line 25 of the install script (bash: line 25: [[x86_64: command not found). I'm not a programmer, but if I read the code correctly, the next line should read "Detected linux amd64", which in my case then reads "Detected linux x86_64" and then consequently does not find a release for linux.
Tried on linux mint 21.2 and an old MX install.
Any idea why that is and what I'm doing wrong?
Cheers!
[Describe the bug
A clear and concise description of what the bug is.
OS: [e.g. Windows]
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Add any other context about the problem here.
](go: github.com/Lofter1/anyflip-downloader@latest: module github.com/Lofter1/anyflip-downloader: Get "https://proxy.golang.org/github.com/%21lofter1/anyflip-downloader/@v/list": dial tcp 172.217.163.49:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.)
Describe the bug
Running the recommended installation script (curl | bash script) fails for my architecture of x86_64.
OS: Linux Mint 21.2 x86_64
The full message returned to the terminal is:
Detect Platform and Architecture
bash: line 25: [[x86_64: command not found
Detected linux x86_64
Found latest release at
No release found for platform: linux
To Reproduce
To reproduce this behavior, attempt to run the installation script on a system that will return "x86_64" as the architecture variable in the installation script.
Expected behavior
The installation script should work normally for systems that return x86_64 as the architecture.
Additional context
Hard coding the installation script to use "amd64" as the architecture made it work correctly. One possible fix would be to check for "x86_64" and change it to "amd64" within the script.
One additional note: my system doesn't register the "anyflip-downloader" command after the installation moves it into /root/.local/bin . Moving it into /usr/bin worked for me.
When trying to dowload a specific file I get this runtime error:
panic: runtime error: index out of range [1] with length 1
goroutine 1 [running]:
main.sanitizeURL(0xc00013ea20)
/home/runner/work/anyflip-downloader/anyflip-downloader/main.go:116 +0xf4
main.prepareDownload(0xc00013ea20)
/home/runner/work/anyflip-downloader/anyflip-downloader/main.go:78 +0x46
main.main()
/home/runner/work/anyflip-downloader/anyflip-downloader/main.go:52 +0x1c5
I don’t know which command to put but my file has 121 pages. If anyone can help me.
I am also getting this error.
./anyflip-downloader 'https://anyflip.com/ysunc/yjov/'
Preparing to download
2023/08/09 13:55:44 Received non-200 response: 403 Forbidden
Originally posted by @CoocooFroggy in #6 (comment)
When trying to dowload a specific file I get this runtime error:
panic: runtime error: index out of range [193] with length 193
goroutine 1 [running]:
main.prepareDownload(0xc00018e900)
/home/runner/work/anyflip-downloader/anyflip-downloader/main.go:106 +0x43c
main.main()
/home/runner/work/anyflip-downloader/anyflip-downloader/main.go:52 +0x1c
Tried both on Linux and Windows, tried compiling from source and using the release.
Does not happen with any other file I tried downloading, only with this specific one.
Description
The script fails to convert downloaded data into pdf when the title of the anyflip's book contains an apostrophe (f.ex "Wayfinder's"). When the error occurs the script prints the line stating:
date time open Wayfinder's.pdf: The system cannot find the path specified."
The error doesn't occur when the title doesn't contain an apostrophe and pdf is successfully generated from the downloaded data.
Setting the title manually with the -title flag doesn't seem to work. I attempted to set a different title with this flag, but it never worked for me for some reason. My input commands were:
anyflip-downloader url -title MM5
or
anyflip-downloader url -title SKT
Similarly, -temp-download-folder flag didn't work for me neither. My input command was:
anyflip-downloader url -temp-download-folder Wayfinder
OS: Windows 10 22H2
To Reproduce
Install, using the PowerShell command provided in the code.
Input the command line, such as:
anyflip-downloader https://anyflip.com/ybvc/hgch -title MM5
or
anyflip-downloader https://anyflip.com/ybvc/zlfd/ -temp-download-folder Eberron
Expected behavior
Conversion of downloaded data into a pdf even if the title of the downloaded book in anyflip contains an apostrophe.
Title is changed to the one specified by the flag.
Temporary folder name is changed to the one specified by the flag.
Describe the bug
I Just installed this tool, and it worked great for one document, but not so great for another.
I got an out of memory error after the "converting to pdf" message.
OS: Windows
To Reproduce
Steps to reproduce the behavior:
I downloaded a file from this link:
https://online.anyflip.com/ghvwd/sbeq/mobile/index.html
Expected behavior
I expected it to convert the images to a PDF.
Additional context
The document is pretty big, maybe that's the issue?
error.txt
Is your feature request related to a problem? Please describe.
The install.sh script detects the architecture x86_64 on my Linux system. However, there is no release for that architecture.
Describe the solution you'd like
I would like to have a x86_64 architecture release
Describe alternatives you've considered
A description how to compile the tool locally would help as well.
I also tried the amd64 release, but this results in the following error:
$ anyflip-downloader
panic: runtime error: index out of range [0] with length 0
goroutine 1 [running]:
main.main()
/home/runner/work/anyflip-downloader/anyflip-downloader/main.go:41 +0x397
$ uname -a
Linux arch 6.5.9-arch2-1 #1 SMP PREEMPT_DYNAMIC Thu, 26 Oct 2023 00:52:20 +0000 x86_64 GNU/Linux
Describe the bug
The download completes, but when the images are converted to a PDF, I end up with an empty file with no extensions.
OS: Windows
To Reproduce
Steps to reproduce the behavior:
Download https://anyflip.com/hveyv/uwkj/basic using the script, and the download completes successfully. After downloading, I get a line stating that it's "Converting to pdf" and it stops there.
Expected behavior
An accessible PDF file is to be created after the download.
I can't seem to download/use the tool, and I've tried every which way I can think of to use it.
Describe the bug
A clear and concise description of what the bug is.
I downloaded it and it said convert to pdf and I typed ls and nothing happened
it just listed all my folders on my files.
OS: [e.g. Windows]
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Add any other context about the problem here.
I am deathly new to Github and to everything in general, I'm not sure what I should do in regards to doing it correctly. Could you treat me as someone who has never encountered github or any coding and tell me what i'm missing / doing wrong?
Describe the bug
I have installed it using script (not go) but powershell says the command isn't recognised.
OS: [e.g. Windows]
Windows
To Reproduce
Trying to install using the command, for example " anyflip-downloader https://anyflip.com/zupby/pxnl/ "
Expected behavior
For the download to happen
Additional context
I have tried restarting powershell and computer but that didn't fix it, i can see the folder in local/anyflip-downloader with the exe, licence and readme. In get-commands, the " anyflip-downloader " command is not listed. I have retried installing multiple times.
Useage instructions seem a little vague but im not sure what im doing wrong in this instance.
I installed the package using git clone
, navigated to the folder I created, then tried to use it and all I get is:
PS C:\Users\jay\documents\anyflip-downloader> ./anyflip-downloader https://anyflip.com/hveyv/chwx/
./anyflip-downloader : The term './anyflip-downloader' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:1
+ ./anyflip-downloader https://anyflip.com/hveyv/chwx/
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (./anyflip-downloader:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
This happens also when I just try anyflip-downloader https://anyflip.com/hveyv/chwx/
I don't know if I just need to download something or I'm writing it wrong, but I'd love some clarification. I'm on Windows using Powershell.
i want to know how to put the link into the link box? how do i do that and why do u keep close the issue when i need the help?
Installed using go method.
Inputted the commands to download.
Command Window shows that it is downloading.
44/44 downloaded.
Converted to pdf.
Then nothing. Files aren't appearing anywhere on my device.
I even tried naming the book a different title and in a different temporary download folder.
Am I doing something wrong or is the tool just simply instantly deleting both the default and the differently named download folder before I even get a chance to open it?
Hello, thank you for providing this utility.
When install anyflip-downloader, I encountered the following error:
Get "https://online.anyflip.com/.../mobile/javascript/config.js": tls: failed to verify certificate: x509: certificate signed by unknown authority
I managed to find a workaround by adding anyflips certificate to the trusted store as follows.
echo -n | openssl s_client -servername online.anyflip.com -connect online.anyflip.com:443 2>/dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > ~/anyflip.cert
sudo mkdir -p /usr/local/share/ca-certificates/extra
sudo cp ~/anyflip.cert /usr/local/share/ca-certificates/extra/anyflip.crt
sudo update-ca-certificates
I'm not sure if there is a way to disable this certificate check in go, or if its even desireable, just leaving this here in case someone else comes across the same problem.
PDF download doesn't happen when I download from this like "https://anyflip.com/npkza/fxkb" and seems to be only this link. An error shows up on the console, stating the date, then the time, then "Could not find page count". Example: "2023/10/13 12:49:35 could not find page count". Other PDFs work just fine.
OS: Windows
Steps to reproduce the behavior:
Use anyflip-downloader with this link "https://anyflip.com/npkza/fxkb", flags don't change behaviour.
Expected behavior:
For it to download the pdf as normal.
Notes:
The tool was downloaded by the command, not the go installer
Windows doesn't allow \ as Folder Names and I had files with the title name with an ' and there the program tries to write ' .
So it would be good to change the temp save name next to the title name...
Describe the bug
When running the script, it does not detect a release for darwin
OS: MacOS (darwin)
To Reproduce
Run scrip on MacOS Terminal
Expected behavior
Installation should work normally
Additional context
Add any other context about the problem here.
Is your feature request related to a problem? Please describe.
The PDF is produced without any hitches, but the issue I find is that the pages are zoomed in too much.
Describe the solution you'd like
A way to have the default zoom size be further out.
Describe alternatives you've considered
A way to zoom out further than the normal limit when having opened a PDF
Describe the bug
App appears to execute as normal but resulting PDF is blank/empty
OS: Windows 11
To Reproduce
Download an AnyFlip file which consists of .webp files
Expected behavior
downloaded anyflip converted to PDF
Additional context
Appears to be a problem when the AnyFlip file contains .webp files instead of .jpeg files. Files are downloaded to the Temp folder as normal but when combined to a PDF the resulting PDF is empty.
URL: https://anyflip.com/wltz/ylgh/
Preparing to download
panic: runtime error: index out of range [1] with length 1
goroutine 1 [running]:
main.getPageCount(0xc000170090)
.../anyflip-downloader/main.go:130 +0x445
main.main()
.../anyflip-downloader/main.go:30 +0x145
exit status 2
you no help why
i just need the help it not that hard
Trying to open the current version of the anyflip-downloader.exe and it won't open, it flashes briefly on my taskbar but then nothing else.
Describe the bug
My download gets constantly interrupted by this error, which forces me to delete the temp file to try again, only to fail once more
OS: Windows
To Reproduce
The link i'm trying to download is https://online.anyflip.com/mfocz/ddwi
Expected behavior
A complete download!
you say to do the link into the link box, how to do the link into link box?
Hi! Thank you for the downloader, but I seem to be running into the above error regardless of the website I am using.
anyflip-downloader https://online.flippingbook.com/view/771043/2/ Preparing to download 2023/08/08 23:02:51 received non-200 response:403 Forbidden
I also tried using a different URL "https://delta.hoddereducation.co.uk/EInspection/9781398369900/files/index.html?x=55049081a97d40aab7d43943ab4cea08" but the same error popped up.
I am on Windows 10. Please let me know if there is any other information I can provide to help resolve this issue.
i want to put in the name not the link
i dont know how to grab a link so pls help
Describe the bug
I get this error message: 2023/11/09 15:06:13 received non-200 response:403 Forbidden
OS: [e.g. MACOS Intel]
To Reproduce
anyflip-downloader http://*****.stude*nti33.**it/secure/docs/ISBN/
Expected behavior
to download the book
Additional context
When using my browser, i should sign in first. Is there a way to use browser cookies, or add an extra login step?
When I try to install on macOS Ventura (M1Pro Macbook Pro), I get the following issues :
Detect Platform and Architecture
Detected darwin arm64
bash: line 28: jq: command not found
Found latest release at
No release found for platform: darwin
How can I pass this problem ?
Describe the bug
Got this during execution :
asstylz@Blackbox-2:~/.local/bin$ ./anyflip-downloader https://www.warhammer.com/fr-FR/shop/kill-team-compendium-2021-eng
./anyflip-downloader: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./anyflip-downloader)
./anyflip-downloader: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./anyflip-downloader)
OS: Windows running Ubuntu via WSL2
Any idea ? :)
does this only work on linux environments? i installed the go programming language bc i figured that was a prereq. apologies bc i know this is probably a dumb question. but i'm getting
The term 'anyflip-downloader' is not recognized as the name of a cmdlet, function, script file,
or operable program.
when i run a powershell window in the folder with the module executable. idk what im doing.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.