Do you want it opened in a browser and then Closes it and opens it again for the other url?
The only issue is that iMacros doesn't have multithreading capabilities, so if you want to load 100k urls and stay on the urls for 30 secs, that would take more than a month while running the bot 24/7. Multiple instances can be run of course, but even if you run 4-5 instances simultaneously, it would still take a week 24/7.
I have a list of 100,000 URls that I want to open in a browser window for 30 seconds. I'm not bothered about proxies. It just has to register with the analytics on that site/URl.
i.e. I enter the list somewhere and the program opens that URl for 30 seconds, closes it, then moves on to the next one in the list until the list is finished.
Thanks
You mean, does the bot browser have to load javascript? I'm guessing so. Like I said, the visit needs to show up in analytics. Is that what you meant?Do you need a javascript supported script or not?
I have a list of 100,000 URls that I want to open in a browser window for 30 seconds. I'm not bothered about proxies. It just has to register with the analytics on that site/URl.
i.e. I enter the list somewhere and the program opens that URl for 30 seconds, closes it, then moves on to the next one in the list until the list is finished.
Thanks
python bot.py
# -*- coding:utf-8 -*-
"""
for this script you need python installed on your computer.
also a 3rd party module needs to be installed. But the script takes care of it
Last one to automate web you need geckodriver for mozilla
search google you can find it on github (different versions available for linux mac and windows)
extract it and copy it under directory C:\
if you're on mac or linux copy it to your root folder you're ready.
"""
import time
import os
try:
from selenium import webdriver
except:
os.system('pip install selenium')
url_file = open("name_of_url_file.txt", "r")
driver = webdriver.Firefox()
for url in url_file.readlines():
driver.get(url)
time.sleep(30)
driver.close()
I have bot will be ready for sale after 2 days for $47 contains that features ...
# -*- coding:utf-8 -*-
"""
for this script you need python installed on your computer.
also a 3rd party module needs to be installed. But the script takes care of it
Last one to automate web you need geckodriver for mozilla
download it from github.com/mozilla/geckodriver/releases (different versions available for linux mac and windows)
extract it and copy it under directory C:\
if you're on mac or linux copy it to your root folder you're ready.
"""
import time
import os
from multiprocessing import Pool
try:
from selenium import webdriver
except:
os.system('pip install selenium')
def open_browser(url):
driver = webdriver.Firefox()
driver.get(url)
time.sleep(10)
driver.close()
if __name__ == '__main__':
url_file = open("name_of_url_file.txt", "r")
# define the number of windows you want to open at the same time.
browser_count = 5
p = Pool(browser_count)
p.map(open_browser, [line for line in url_file.readlines()])
Here is the updated code. Hope it helps!
Code:# -*- coding:utf-8 -*- """ for this script you need python installed on your computer. also a 3rd party module needs to be installed. But the script takes care of it Last one to automate web you need geckodriver for mozilla download it from github.com/mozilla/geckodriver/releases (different versions available for linux mac and windows) extract it and copy it under directory C:\ if you're on mac or linux copy it to your root folder you're ready. """ import time import os from multiprocessing import Pool try: from selenium import webdriver except: os.system('pip install selenium') def open_browser(url): driver = webdriver.Firefox() driver.get(url) time.sleep(10) driver.close() if __name__ == '__main__': url_file = open("name_of_url_file.txt", "r") # define the number of windows you want to open at the same time. browser_count = 5 p = Pool(browser_count) p.map(open_browser, [line for line in url_file.readlines()])
public async Task visitwebsite()
{
var t = new Thread(() => {
var lines = File.ReadAllLines(fileName);
foreach (var website in websites){
using(var visit = await client.getAsync(website)){
Thread.sleep(30);
}
}
});
t.start();
}
public void click_button(....)
{
this.visitwebsite().wait();
}