Код: Выделить всё
import urllib.request
import requests
import csv
from bs4 import BeautifulSoup
quote_page = 'https://www.sec.gov/Archives/edgar/data/3662/0000950170-98-000413.txt'
page = urllib.request.urlopen(quote_page)
soup = BeautifulSoup(page,'html.parser')
name_box = soup.find
print(name_box)
with open('index1.csv', 'a') as csv_file:
writer = csv.writer(csv_file)
writer.writerows([name_box])
Подробнее здесь: https://stackoverflow.com/questions/502 ... row-in-csv