| |

VerySource

 Forgot password?
 Register
Search
View: 1876|Reply: 16

How to get javascript link

[Copy link]

1

Threads

9

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

Post time: 2020-1-27 02:00:01
| Show all posts |Read mode
I want to get the uri address of the corresponding attachment (.doc / .pdf format) from the link on a webpage and download it. How to achieve it by using a program to obtain the uri under the .net and automatically download it using a program? I always think that if an attachment If uri is implemented in javascript, my program will not get this link. I wonder if there is a good way for heroes?
Reply

Use magic Report

0

Threads

46

Posts

23.00

Credits

Newbie

Rank: 1

Credits
23.00

 China

Post time: 2020-2-19 13:30:02
| Show all posts
Make a function of parsing js yourself
Reply

Use magic Report

1

Threads

9

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

 Author| Post time: 2020-2-20 19:00:01
| Show all posts
Not very familiar with such things, can you give an example? Thank you
Reply

Use magic Report

0

Threads

8

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

Post time: 2020-2-22 12:30:02
| Show all posts
use dom
Reply

Use magic Report

0

Threads

8

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

Post time: 2020-2-24 16:45:02
| Show all posts
Using the webbrowser control, after downloading the URL
Get the document property of webbroswer and use dom to analyze the URLs in it
Reply

Use magic Report

1

Threads

9

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

 Author| Post time: 2020-3-1 09:45:02
| Show all posts
Does webbroswer need to execute that js function, otherwise, how can we get the real url? Know that we can't get the url based on the literal of the js function.
If webbroswer executes js functions, how to execute them, aren't those js function codes on the server of other websites, how do I get the source code of js?
Online etc ...
Reply

Use magic Report

1

Threads

9

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

 Author| Post time: 2020-8-6 22:30:01
| Show all posts
I saw that js code can be executed with dom in other places, but I don’t know if I can still get the url link. Expert enlightenment
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 United States

Post time: 2020-8-7 02:15:01
| Show all posts
Use regular expressions to extract URLs and execute javascript using methods in webbrowser. You can check on the Internet for details.
Reply

Use magic Report

0

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-8-7 05:00:01
| Show all posts
If the page content is generated by the logic of js code
You only have to write javascript scripts yourself
Parser
firfox open source seems to be there.
Reply

Use magic Report

1

Threads

9

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

 Author| Post time: 2020-8-15 15:45:01
| Show all posts
Heroes can give bwebrowse some code to execute javascript?
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list