TGViewer
CodeShadow CodeShadow @codeshadowcources · 77 subscribers
Post #269 28
📄 Полезный скрипт: сбор данных с сайта в Excel

Нужно собрать данные и сохранить их в таблицу:

code
import requests
from bs4 import BeautifulSoup
import openpyxl

res = requests.get("
soup = BeautifulSoup(res.text, "html.parser")
quotes = soup.find_all("span", class_="text")

wb = openpyxl.Workbook()
ws = wb.active

for i, q in enumerate(quotes, 1):
ws[f"A{i}"] = q.text

wb.save("quotes.xlsx")
More from @codeshadowcources
  1. Oct 9, 2026🖥
  2. Oct 8, 2026Наш внутренний проект для преподавателей. Думаю, получилось отлично)
  3. Oct 8, 2026🎮 Как мы внедрили геймификацию в работу преподавателей Геймификация давно вышла за предел…
  4. Oct 6, 2026😎
  5. Oct 3, 2026😐
  6. Sep 27, 2026Пусть Codex или Claude сами напишут MCP Теперь кейс посерьёзнее. Допустим, приходит клиент…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →