This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ★の数/評価者数で割って平均値を知りたかった | |
import json | |
from collections import OrderedDict | |
import requests | |
from bs4 import BeautifulSoup | |
import csv | |
import time | |
# ひとまず500位まで | |
rank_fetch_limit = 500 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ★の数/評価者数で割って平均値を知りたかった | |
import requests | |
from bs4 import BeautifulSoup | |
import csv | |
import time | |
# ひとまず300位まで | |
page_fetch_limit = 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from bs4 import BeautifulSoup | |
import csv | |
import time | |
# ひとまず300位まで | |
page_fetch_limit = 3 | |
# ランキングから小説の固有ID一覧を抽出 | |
def fetch_book_identifiers(page_num: int): |