2023-01-01から1ヶ月間の記事一覧
import time from urllib.parse import urljoin import requests from bs4 import BeautifulSoup # プロジェクト p_number = 12345 # スクレイピング url = f"https://camp-fire.jp/projects/{p_number}/backers" link = url result = [] while True: print(…
import pandas as pd import requests from bs4 import BeautifulSoup url = "https://www.bs.jrc.or.jp/csk/ehime/place/m1_03_index.html" r = requests.get(url) r.raise_for_status() soup = BeautifulSoup(r.content, "html.parser") dfs = [] for i in…