Jump to content

So, i want to write a program (preferably in csharp or java, maybe python but im more experienced in the former languages) that when run, will automatically go to a link, input the username and password, and then download the file off of a link that you can click on. For the one i have in mind, the link does not have a src when i looked in the dom (its like the one in the pic below that says save this bill(PDF) ) So, how in the world would i be able to do that with csharp or java. It can be very advanced or basic, i don't really care, Thanks in advance

000000000000000000000000.PNG

Link to comment
https://linustechtips.com/topic/661958-i-need-help-with-website-development/
Share on other sites

Link to post
Share on other sites

You could probably do this with windows task scheduler and just record your actions...

NEW PC build: Blank Heaven   minimalist white and black PC     Old S340 build log "White Heaven"        The "LIGHTCANON" flashlight build log        Project AntiRoll (prototype)        Custom speaker project

Spoiler

Ryzen 3950X | AMD Vega Frontier Edition | ASUS X570 Pro WS | Corsair Vengeance LPX 64GB | NZXT H500 | Seasonic Prime Fanless TX-700 | Custom loop | Coolermaster SK630 White | Logitech MX Master 2S | Samsung 980 Pro 1TB + 970 Pro 512GB | Samsung 58" 4k TV | Scarlett 2i4 | 2x AT2020

 

Link to post
Share on other sites

7 minutes ago, Enderman said:

You could probably do this with windows task scheduler and just record your actions...

how would it be able to that? If i give task scheduler the log in credentials and i want it to click on that link and get it downloaded for me automatically would it be similar to recording a macro or something else?

Link to post
Share on other sites

6 minutes ago, gtx1060=value said:

how would it be able to that? If i give task scheduler the log in credentials and i want it to click on that link and get it downloaded for me automatically would it be similar to recording a macro or something else?

Pretty sure you can, I haven't needed to use it before though.

https://technet.microsoft.com/en-us/library/cc748993(v=ws.11).aspx

NEW PC build: Blank Heaven   minimalist white and black PC     Old S340 build log "White Heaven"        The "LIGHTCANON" flashlight build log        Project AntiRoll (prototype)        Custom speaker project

Spoiler

Ryzen 3950X | AMD Vega Frontier Edition | ASUS X570 Pro WS | Corsair Vengeance LPX 64GB | NZXT H500 | Seasonic Prime Fanless TX-700 | Custom loop | Coolermaster SK630 White | Logitech MX Master 2S | Samsung 980 Pro 1TB + 970 Pro 512GB | Samsung 58" 4k TV | Scarlett 2i4 | 2x AT2020

 

Link to post
Share on other sites

I would rather do this in JavaScript tbh so you don't have to manage cookies, browser would do that and the JS would do all the clicking.

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to post
Share on other sites

Just now, vorticalbox said:

I would rather do this in JavaScript tbh so you don't have to manage cookies, browser would do that and the JS would do all the clicking.

how would you do that, i have no experience with writing automation scripts like this. i mainly do sql 

Link to post
Share on other sites

2 hours ago, gtx1060=value said:

how would you do that, i have no experience with writing automation scripts like this. i mainly do sql 

if I had read this early I could ha E gotten a little script together. Can't just now as its getting rather late however if no one has replied ill get something together.

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to post
Share on other sites

9 minutes ago, vorticalbox said:

if I had read this early I could ha E gotten a little script together. Can't just now as its getting rather late however if no one has replied ill get something together.

thank you so much - i really appreciate it. one issue though, you are aware that the document i need to automatically get does not have a url... it uses the ng-click function with angular js in the place of an href

Link to post
Share on other sites

Just make an extension. If you're using chrome it's fairly simple, just make a content script for that specific page to write stuff in the boxes, and another one for the specific download page to click the button.

If you need it to be automated, pretty sure you can do something with time on javascript as well. All you have to do then is just keep a tab with that thing on open, pin it not to cause any trouble and you're golden.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×