Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const getScript = async (url) => {
- const responce = await fetch(url);
- const data = await responce.text();
- return data.split("\n");
- };
- const main = async () => {
- const httpProxies = await getScript(
- "https://raw.githubusercontent.com/monosans/proxy-list/main/proxies/http.txt"
- );
- // Use httpProxies vaiable anywhere inside the main fuction scope
- console.log(httpProxies.length); // 400+
- };
- (async () => await main())();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement