Thứ Ba, 19 tháng 3, 2019

Cách lấy tất cả link trong 1 trang web dùng Firefox

If you have the developer console (JavaScript) in your browser, you can type this code in:

urls = document.querySelectorAll('a'); for (url in urls) console.log(urls[url].href);

Shortened:
 
n=$$('a');for(u in n)console.log(n[u].href)

0 Nhận xét:

Đăng nhận xét

Đăng ký Đăng Nhận xét [Atom]

<< Trang chủ