'How to fetch Reddit post from a scraped csv
Solution 1:[1]
So first of all you need to read that file.
import csv
with open('yourfilename.csv', mode ='r') as file:
csvFile = csv.reader(file)
Taken from here
Next you would want to split each column to a list, so that you can scrape multiple ids
idList = []
for line in csvFile: # loop each line
for columns in line: # loop each column
for element in columns.split(' '): # loop each element
idList.append(element)
print(idList)
Taken from here
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |

