I have a python script for a single URL and I need to run this for multiple URLs from url.txt and grab the output in a single txt file.
Here is the python script (minified):
import urllib2
from bs4 import BeautifulSoup
quote_page = 'https://www.example.com/page/1024'
#Rest of the script here
print var1
print var2
print var3
Here is an example output for one URL:
Name: John Doe
DOB: 01-Jan-1980
Gender: Male
I want this output for URL 1 which my script gives exactly as I want. I want to repeat this for URL 2, URL 3 and so on as in url.txt.
Any ideas how?
P.S. I've kept the question simple but if you need more details, lemme know and I'll do so.