Skip to content

Parallel asynchronous network requests via tor proxy

License

Notifications You must be signed in to change notification settings

mr-js/netstream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8cf3f2c · Nov 15, 2023

History

1 Commit
Nov 15, 2023
Nov 15, 2023
Nov 15, 2023
Nov 15, 2023
Nov 15, 2023
Nov 15, 2023

Repository files navigation

netstream

Parallel asynchronous network requests via tor proxy

Usage

Simply feed all page urls to the Netstream module1 and it will start a parallel asynchronous process to load the required resources

Examples

 from netstream import Netstream

 urls = [fr'https://ya.ru', fr'http://jsonip.com']
 ns = Netstream()
 data = ns.run(targets=urls)
 complete = f'{100*ns.received/ns.total:.0f}' if ns.total else 0
 print(f'result {complete}% (errors {ns.total-ns.received}) ')
 print(f'{data}')

Remarks

Netstream used Tor Browser resources.

Footnotes

  1. Tor browser must be running and active at this time