# Read CSV file with source URLs of RSS Feeds and create a List
import re
import csv


def get_source_list() :
    content_source_file_list = [
    "source-rss-psychology.csv",
    "temp.html"
    ]

    content_source_file_dict = {
    "rss" : "source-rss-psychology.csv",
    "urls" : "temp.html"
    }

    with open(content_source_file_list[0], newline='') as csvfile:
        global feed_urls
        feed_urls = []
        data = csv.reader(csvfile, delimiter=' ', quotechar='|')
        for row in data:
            feed_urls.append(', '.join(row))
        # print(feed_urls)

    print(feed_urls)
    return feed_urls



'''
with open(content_source_file_list[0]) as f:
    text = f.read()
# print(text)
href_regex = r'[\'"]?([^\'" >]+)'
urls = re.findall(href_regex, text)
print(urls)
'''


# Read CSV file with source URLs of RSS Feeds and create a List
import re
import csv


def get_source_list() :
    content_source_file_list = [
    "source-rss-psychology.csv",
    "temp.html"
    ]

    content_source_file_dict = {
    "rss" : "source-rss-psychology.csv",
    "urls" : "temp.html"
    }

    with open(content_source_file_list[0], newline='') as csvfile:
        global feed_urls
        feed_urls = []
        data = csv.reader(csvfile, delimiter=' ', quotechar='|')
        for row in data:
            feed_urls.append(', '.join(row))
        # print(feed_urls)

    print(feed_urls)
    return feed_urls



'''
with open(content_source_file_list[0]) as f:
    text = f.read()
# print(text)
href_regex = r'[\'"]?([^\'" >]+)'
urls = re.findall(href_regex, text)
print(urls)
'''


# Read CSV file with source URLs of RSS Feeds and create a List # print(feed_urls) with open(content_source_file_list[0]) as f:     text = f.read() # print(text) href_regex = r'[\'"]?([^\'" >]+)' urls = re.findall(href_regex, text) print(urls)