[Solved] Scrape Multiple URLs from CSV using Beautiful Soup & Python
Assuming that your urls.csv file look like: https://stackoverflow.com;code site; https://steemit.com;block chain social site; The following code will work: #!/usr/bin/python # -*- coding: utf-8 -*- from bs4 import BeautifulSoup #required to parse html import requests #required to make request #read file with open(‘urls.csv’,’r’) as f: csv_raw_cont=f.read() #split by line split_csv=csv_raw_cont.split(‘\n’) #remove empty line split_csv.remove(”) #specify separator … Read more