9.7 KiB
9.7 KiB
A combination of all Git-reops. Crawler, uploader and analysis for various data sources for INSE.
Order to be executed
- Crawler & Uploader
- further Analysis
First do all in Crawler & Uploader. Second do further Analysis. The order within the Crawler & Uploader points doesn't matter. You can do "UDE Persons" or "Campus Aktuell" first. Doesn't matter. Within a single point you have to do the scripts from top to bottom.
Crawler & Uploader
Intern:
UDE Persons:
- Path: inse-internal-external-scripts\intern\publication_ude_crawler\v2\persons
- Crawl: ude_persons.py
- Upload: persons_upload.py
- Parameter: path to "ude_persons"-folder (should be in the same directory)
UDE Publications:
- Path: inse-internal-external-scripts\intern\publication_ude_crawler\v2\pyparse
- Crawl & Upload: ude_publications.py
LSF Persons:
- Path: inse-internal-external-scripts\intern\lsf_crawler
- Crawl: lsf_crawler.py
- Upload: lsf_uploader.py
- Parameter: path to "lsf_persons"-folder (should be in the same directory)
Campus Aktuell:
- Path: inse-internal-external-scripts\intern\campus-aktuell-crawler
- Crawl: Scrapy
- scrapy crawl aktuell-links -O links.json
- scrapy crawl aktuell-metadata -O meta.json
- Upload: upload_aktuell.py
- Parameter: path to "meta.json"-file
- Analysis: aktuell_spacy.py
- Archiv: Done - not needed again
UDE Organization Website Crawler
- Info: Utilizes Scrapy framework to crawl the organizations pages of the university based on the identified entities from Organization Miner
- To run use in crawler directory:
scrapy crawl ude -s JOBDIR=crawls/ude
UDE Organization Hierarchy:
- Info: Creates UDE hierarchy and links_to_analyze files(links_to_analyze for further UDE Organization processing)
- Path: inse-internal-external-scripts\intern\ude_organization\ude_hierarchy
- GET hierarchy.json and links_to_analyze.json: create_hierarchy.py
- Parameter: path to ude_truth.json (should be in the same directory)
- Optional: links_to_analyze is adjusted according problem_orgs.json in "inse-internal-external-scripts\intern\ude_organization\problem_orgs.json" to approach the problem of finding too few links
UDE Organization Upload:
- Info: Needs much disc space and time
- Path: inse-internal-external-scripts\intern\ude_organization
- Crawl:
- GET Redirections:get_redirections.py
- Parameter: path to "warc_zips"-folder (should be in the same directory)
- Upload: upload_ude_pages.py
- Parameters: path to "warc_zips"-folder (should be in the same directory), path to redirections_lookup.json
UDE Organization Categorize:
- Info: Needs much disc space and time
- Path: inse-internal-external-scripts\intern\ude_organization\url_classifier
- Crawl:
- Upload: python links_classifier.py
- Parameter: path to "links_to_analyze.json"-file (should be in the same directory)
- Optional: addtional sources added from according problem_orgs.json in "inse-internal-external-scripts\intern\ude_organization\problem_orgs.json" to approach the problem of missing sources due to finding too few links
UDE Organization Content
Overview
- Info: Requires significant disk space and processing time.
- Path:
inse-internal-external-scripts\intern\ude_organization\content_extractor - Crawl:
- Upload: Run
python content_extractor.py- Parameter: Path to
hierarchy.jsonfile (should be in the same directory).
- Parameter: Path to
Encountered Problems
- Missing staff data for 154 organizations
- Reasons:
- Wrong (outdated) URLs in
ude_truth.json: Pages not found for categorization (links_classifier.py), leading to missing staff data. - No URLs uploaded from Scrapy crawler for some organizations.
- Not an actual organization: URLs ending in
.phpor.htmlrestrict finding organization pages. - Sources not extracted: Bug in
links_classifier.py. - Incomplete staff data: Either Trafilatura failed to extract page content, or UDE pages lack sufficient staff information.
- Staff pages falsely categorized: LLaMA 3 categorizes pages by their link, leading to incorrect categorization.
- Hard redirects matching: Bug in
links_classifier.py.
- Wrong (outdated) URLs in
- Reasons:
Solutions
- Outdated URLs: Manually review and update URLs in
ude_truth.json. - No URLs uploaded: Not fixed.
- Invalid organization URLs: Manually adjust URLs (e.g., navigate one directory back) and update in
ude_truth.json. - Sources not extracted: Adjusted querying to resolve the bug.
- Incomplete staff data: No solution implemented.
- False categorization: Check content of pages categorized as "Entity" for staff data.
- Hard redirects matching: Adjusted querying to fix the bug.
After applying solutions
- Missing staff data for 61 organizations
- Reasons:
- Not full or hidden staff info: The main problem still remains missing(or not extractable - hidden) body content from some ude pages
- Reasons:
UDE Organization Content Keywords
- Info: Needs much time
- Path: inse-internal-external-scripts\intern\ude_organization\extract_ude_content_keywords
- Crawl:
- Upload: python extract_ude_content_keywords.py
Extern:
Common Crawl:
- Info: Needs much disc space and time
- Path: inse-internal-external-scripts\extern\common-crawl\v2
- Crawl:
- warc-paths.py
- warc-download.py
- Upload: warc-upload.py
- Parameter: path to "warc_zips"-folder (should be in the same directory)
EPO Patents from disc:
- Info: Also check own README
- Path: inse-internal-external-scripts\extern\epo-api\epo_disc
- Parser: xml_to_dict.py
- Parameter: Path to patent-XMLs
- Upload: upload.py
- Parameter: Path to patent-JSONs
EPO Patents CPCs:
- Path: inse-internal-external-scripts\extern\epo-api\cpc_xml_parser_uploader
- CPC: Done - not needed again
EPO Patents from EPO OPS API:
- Info: How to use -> check own README
- Path: inse-internal-external-scripts\extern\epo-api\EPO_API\v2
USPTO Patents from USPTO API:
- Info: How to use -> check own README
- Path: inse-internal-external-scripts\extern\uspto-crawler
EU Startups:
- Path: inse-internal-external-scripts\extern\eustartups\eustartups-v2
- Crawl: Srapy
- scrapy crawl startups-links -O links.json
- scrapy crawl startups-metadata -O metadata.json
- Upload: upload_startup.py
- Parameter: path to "metadata.json"-file
Projects (BMBF) - all:
- Path: inse-internal-external-scripts\extern\generic-project-crawler\project-crawler-v4-all\BMBF_generic
- Crawl Links: gpc_links.py
- Parameter: path to links_config.json
- Crawl Data and Upload: gpc_data.py
- Parameter: path to data_config.json
- Parameter: path to links.json
Projects (DFG) - all:
- Path: inse-internal-external-scripts\extern\generic-project-crawler\project-crawler-v4-all\DFG
- Crawl Links: dfg_links.py
- Crawl Data and Upload: dfg_data.py
Projects (EU) - all:
- Path: inse-internal-external-scripts\extern\generic-project-crawler\project-crawler-v4-all\EU
- Crawl Links: gpc_links.py
- Parameter: path to links_config.json
- Crawl Data and Upload: gpc_data.py
- Parameter: path to links.json
Projects (BMBF) - UDE only:
- Path: inse-internal-external-scripts\extern\generic-project-crawler\project-crawler-v4-ude\BMBF_generic
- Crawl Links: gpc_links.py
- Parameter: path to links_config.json
- Crawl Data and Upload: gpc_data.py
- Parameter: path to data_config.json
- Parameter: path to links.json
Projects (DFG) - UDE only:
- Path: inse-internal-external-scripts\extern\generic-project-crawler\project-crawler-v4-ude\DFG
- Crawl and Upload: dfg_data.py
Projects (EU) - UDE only:
- Path: inse-internal-external-scripts\extern\generic-project-crawler\project-crawler-v4-ude\EU
- Crawl Links: gpc_links.py
- Parameter: path to links_config.json
- Crawl Data and Upload: gpc_data.py
- Parameter: path to links.json
World of Science - all:
- Info: How to use -> check own README
- Path: inse-internal-external-scripts\extern\publication_scraper
- Crawl: wos_crawler.py
- Parameter: optional -> check own README
- Upload: wos_uploader.py
- Parameter: path to crawled files
World of Science - UDE only:
- Info: How to use -> check own README
- Path: inse-internal-external-scripts\extern\publication_scraper
- Crawl: wos_ude_crawler.py
- Parameter: optional -> check own README
- Upload: wos_ude_uploader.py
- Parameter: path to crawled files
Scopus:
- Path: inse-internal-external-scripts\extern\scopus
- Option 1:
- Crawl Links: scopus_links.py
- Crawl Data and Upload: scopus_data.py
- Option 2:
- Parameter: Crawl and Upload: scopus_crawler.py
further Analysis
Generell statistics:
- Path: inse-internal-external-scripts\analysis
- Analysis: statistics_analysis.py
Merge Publications and Persons:
- Path: inse-internal-external-scripts\analysis
- Analysis: merge_publications_persons.py
Collaborations in publications:
- Path: inse-internal-external-scripts\analysis
- Analysis: colab_analysis.py
Collaborations in patents:
- Path: inse-internal-external-scripts\analysis\patents
- Analysis: patents_colabs.py
UDE vs World per IPC in patents:
- Path: inse-internal-external-scripts\analysis\patents
- Analysis: patents_ude_world_6_years.py
Person Timeline Keywords:
- Path: inse-internal-external-scripts\analysis
- Analysis: person_timeline_keywords.py
Projects BUND:
- Path: inse-internal-external-scripts\extern\generic-project-crawler\project-crawler-v4-all\BMBF_bundprojects
- Crawl & Upload: gpc.data.py
INSE test:
INSE endpoints test:
- Path: inse-internal-external-scripts\inse_test
- Create stats file: test_endpoints.py