Skip to main content

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

  1. Python >= 3.13

Installation

  1. pip: pip install scopus-scraping

  2. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scopus_scraping-0.1.0.tar.gz (45.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scopus_scraping-0.1.0-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

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

Hashes for scopus_scraping-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fc49d6660f7f2eec7949a8252ae5c7652656551011e11a927d2bce033763c8ac
MD5 576592b6c271fca0aa3255c27dbc2af7
BLAKE2b-256 5122b3a47fde5e75892479f674f176e20e744ab9f1812d412f76d0104d85ac91

See more details on using hashes here.

Provenance

The following attestation bundles were made for scopus_scraping-0.1.0.tar.gz:

Publisher: python-publish.yml on Tolyan3k/scopus_scraping

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file scopus_scraping-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for scopus_scraping-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 787242786e2819713831ed8f2f877f547f5611be9870bce5cf26d3eeaa5b0aa6
MD5 1c0f578132e91434bd43b3df2cd7b1f1
BLAKE2b-256 046d528af3b226a5ec49dd9a4734d4a51d153bdc97b990f6b7db25c8c5fc7c9b

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page