Hi
Im download an external pdf file using curl but i could not do it any one can help me to write a script to download the following file to my computer. this is file url https://sci-hub.se/10.1016/j.acap.2014.10.010 it is a pdf file when i type this url i want to download. in the url (https://sci-hub.se/) is permanent only last section (10.1016/j.acap.2014.10.010) is changing can have a script to do that pls. any expert pl help me

If you look at the source of the webpage, you can see that the save button points to this:

zero.sci-hub.se/3659/b0457fed7cde259c21949f7b8dd2f916/lopreiato2015.pdf?download=true

Use that information to update your script.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.