- 手动收集需要爬取的论文领域的子分类:进入SSRN页面 https://papers.ssrn.com/sol3/DisplayJournalBrowse.cfm
- 手动收集得到的论文子分类的参考模板为 Data 文件中的 SSRN_CateList.csv
- 选择子分类这一步很关键,因为当论文页超过200时,SSRN将无法加载论文信息,例如某个领域有400页论文,201页虽然应该有论文,但是却无法加载也无法爬取!
- 选择子分类就是为了尽可能将每个分类待爬取的论文控制在200页以内
- 手动收集得到的论文子分类的参考模板为 Data 文件中的 SSRN_CateList.csv
- 根据 SSRN_CateList.csv 爬取完整的 paper list
- 具体而言,就是使用目录中的 SSRNCrawlList.py 读取 SSRN_CateList.csv,得到 Paper_List.csv
- 注意安装相应的包,提供合适的headers,修改读取路径
- 具体而言,就是使用目录中的 SSRNCrawlList.py 读取 SSRN_CateList.csv,得到 Paper_List.csv
- 根据 Paper_List.csv 爬取 Paper info 和 Author info
- 具体而言,就是使用目录中 SSRNCrawl0510.py 读取 Data/Paper_List.zip 解压得到的20个csv文件,得到 PaperInfo.csv, PaperInfo.json 和 AuthorInfo.json
- PaperInfo.csv 包含了论文页的基本信息
- PaperInfo.json 包含了论文的Title,Abstract和Keywords
- AuthorInfo.json 包含了作者的信息,其中 PaperList 是作者过往所有paper组成的列表
- PaperInfo.csv 包含了论文页的基本信息
- 注意 SSRNCrawl0510.py 默认使用 crawl4ai 爬取,参考页面:https://docs.crawl4ai.com;若不兼容,请手动改为 request.get
- 具体而言,就是使用目录中 SSRNCrawl0510.py 读取 Data/Paper_List.zip 解压得到的20个csv文件,得到 PaperInfo.csv, PaperInfo.json 和 AuthorInfo.json
-
Manually collect the sub-categories within the research area you want to scrape
- Go to the SSRN browse page: https://papers.ssrn.com/sol3/DisplayJournalBrowse.cfm
- Use the reference template
SSRN_CateList.csvin the Data folder to record the sub-categories you pick. - Choosing the right sub-categories is critical: once a paper list exceeds 200 pages, SSRN stops loading paper data (e.g., page 201 of a 400-page list is blank and cannot be scraped).
- The goal of sub-categorisation is therefore to keep each paper list under 200 pages whenever possible.
-
Generate a complete paper list from
SSRN_CateList.csv- Run
SSRNCrawlList.py(found in the project folder). It readsSSRN_CateList.csvand outputsPaper_List.csv. - Make sure to install the required libraries, set appropriate HTTP headers, and adjust the file paths to match your environment.
- Run
-
Scrape Paper info and Author info from
Paper_List.csv- Run
SSRNCrawl0510.py, which reads the 20 CSV files extracted fromData/Paper_List.zipand produces:PaperInfo.csv– basic metadata from each paper pagePaperInfo.json– paper Title, Abstract, and KeywordsAuthorInfo.json– author details, wherePaperListstores a list of all past papers by the author
SSRNCrawl0510.pyuses crawl4ai by default (docs: https://docs.crawl4ai.com). If crawl4ai is not compatible with your setup, replace its calls withrequests.getand adjust the BeautifulSoup selectors accordingly.
- Run