Add your description here
Project description
Scopus scraping
Scrape citations from Scopus.
For now only supports links like http://www.scopus.com/inward/record.url?eid=2-s2.0-85147250183&partnerID=MN8TOARS from ORCID pages
Getting started
Pre-requisites
- Python >= 3.13
Installation
-
pip:
pip install scopus-scraping -
uv:
uv add scopus-scraping
I would also recommend install orcid-scraping library for better bypassing the Cloudflare Anti-bot filter.
Maybe I'll add some bypass filters at some day.
Example usage
Here's an example usage with orcid-scraping library in tandem:
import secrets
import time
from pprint import pprint
from orcid_scraping.models import OrcidResearcherWorkUrlSite
from orcid_scraping.tools.selenium import OrcidScrapeToolSelenium
from selenium.webdriver import Chrome, ChromeOptions
from scopus_scraping.tools.selenium import ScopusScrapeToolSelenium
driver_opts = ChromeOptions()
driver = Chrome(options=driver_opts)
try:
orcid_scrape_tool = OrcidScrapeToolSelenium(driver=driver)
scopus_scrape_tool = ScopusScrapeToolSelenium(driver=driver)
orcid = "https://orcid.org/0000-0003-0198-1886"
orcid_scrape_result = orcid_scrape_tool.scrape_works(orcid=orcid)
for work in orcid_scrape_result.works:
if work.url is not None and work.url.source == OrcidResearcherWorkUrlSite.SCOPUS:
time.sleep(secrets.randbelow(3))
citation = scopus_scrape_tool.scrape_citations(url=str(work.url.value))
pprint(citation)
finally:
driver.quit()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file scopus_scraping-0.1.0.tar.gz.
File metadata
- Download URL: scopus_scraping-0.1.0.tar.gz
- Upload date:
- Size: 45.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc49d6660f7f2eec7949a8252ae5c7652656551011e11a927d2bce033763c8ac
|
|
| MD5 |
576592b6c271fca0aa3255c27dbc2af7
|
|
| BLAKE2b-256 |
5122b3a47fde5e75892479f674f176e20e744ab9f1812d412f76d0104d85ac91
|
Provenance
The following attestation bundles were made for scopus_scraping-0.1.0.tar.gz:
Publisher:
python-publish.yml on Tolyan3k/scopus_scraping
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
scopus_scraping-0.1.0.tar.gz -
Subject digest:
fc49d6660f7f2eec7949a8252ae5c7652656551011e11a927d2bce033763c8ac - Sigstore transparency entry: 252118584
- Sigstore integration time:
-
Permalink:
Tolyan3k/scopus_scraping@cdabc2124fd66bf8e43b73d3eb9a40babf8ca53b -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Tolyan3k
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@cdabc2124fd66bf8e43b73d3eb9a40babf8ca53b -
Trigger Event:
release
-
Statement type:
File details
Details for the file scopus_scraping-0.1.0-py3-none-any.whl.
File metadata
- Download URL: scopus_scraping-0.1.0-py3-none-any.whl
- Upload date:
- Size: 19.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
787242786e2819713831ed8f2f877f547f5611be9870bce5cf26d3eeaa5b0aa6
|
|
| MD5 |
1c0f578132e91434bd43b3df2cd7b1f1
|
|
| BLAKE2b-256 |
046d528af3b226a5ec49dd9a4734d4a51d153bdc97b990f6b7db25c8c5fc7c9b
|
Provenance
The following attestation bundles were made for scopus_scraping-0.1.0-py3-none-any.whl:
Publisher:
python-publish.yml on Tolyan3k/scopus_scraping
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
scopus_scraping-0.1.0-py3-none-any.whl -
Subject digest:
787242786e2819713831ed8f2f877f547f5611be9870bce5cf26d3eeaa5b0aa6 - Sigstore transparency entry: 252118600
- Sigstore integration time:
-
Permalink:
Tolyan3k/scopus_scraping@cdabc2124fd66bf8e43b73d3eb9a40babf8ca53b -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Tolyan3k
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@cdabc2124fd66bf8e43b73d3eb9a40babf8ca53b -
Trigger Event:
release
-
Statement type: