Retrieves information from Sinta (Science and Technology Index) via scraping.
Project description
Sinta Scraper
Retrieves information from Sinta (Science and Technology Index) via scraping.
Installation
pip install sinta-scraper
Dependencies (installed automatically using the above command): beautifulsoup4
, requests
, dicttoxml
, dict2xml
, python-string-utils
, and flatdict
.
Importing
import sinta
Available Functions
Function Details
-
author()
Retrieves an author's information by Sinta ID. For example:
author_id = 6082456
author = sinta.author(author_id)
print(author)
The output format is the Python dictionary. The structure is given in the following sample output.
{'affiliation': {'id': 404,
'name': 'Universitas Brawijaya',
'url': 'https://sinta.kemdikbud.go.id/affiliations/profile/404'},
'articles': {'scholar': 103, 'scopus': 14, 'wos': 0},
'citations': {'scholar': 266, 'scopus': 52, 'wos': 0},
'cited_docs': {'scholar': 0, 'scopus': 9, 'wos': 0},
'department': 'S1 - Teknik Informatika',
'g-index': {'scholar': 1, 'scopus': 1, 'wos': ''},
'h-index': {'scholar': 9, 'scopus': 4, 'wos': ''},
'i10-index': {'scholar': 9, 'scopus': 1, 'wos': ''},
'id': 6082456,
'name': 'RANDY CAHYA WIHANDIKA',
'score': {'3_years': 122,
'affiliation': 0,
'affiliation_3_years': 0,
'overall': 451},
'subjects': ['Image Processing', 'Computer Vision'],
'url': 'https://sinta.kemdikbud.go.id/authors/profile/6082456'}
Multiple authors can also be retrieved at once:
author_ids = 5975467, 6019743
authors = sinta.author(author_ids)
-
affiliation()
Retrieves information about an affiliation. For example:
affiliation_id = 404
affiliation_info = sinta.affiliation(affiliation_id)
Output:
{'abbreviation': 'UB',
'articles': {'garuda': 8783, 'scholar': 100142, 'scopus': 9181, 'wos': 1260},
'authors': 2330,
'citation_per_researcher': {'garuda': 0.46,
'scholar': 462.17,
'scopus': 49.15,
'wos': 7.96},
'citations': {'garuda': 428, 'scholar': 431668, 'scopus': 45910, 'wos': 7432},
'cited_documents': {'garuda': 265,
'scholar': 44142,
'scopus': 5622,
'wos': 778},
'code': '001019',
'departments': 177,
'id': 404,
'journals': 67,
'last_update': '2022-06-15 09:00:53',
'location': 'KOTA MALANG - JAWA TIMUR, ID',
'name': 'Universitas Brawijaya',
'sinta_score': {'3_years': 220241,
'overall': 568684,
'productivity': 277,
'productivity_3_years': 107},
'url': 'https://sinta.kemdikbud.go.id/affiliations/profile/404'}
Other Output Formats
Other formats can be used by specifying the output_format
argument. For example:
author = sinta.author(id, output_format='json')
Avalable output formats:
'dict'
(default)'dict-flat'
'json'
'json-pretty'
'xml'
'xml-flat'
You can also pretty-print a dictionary using pprint
:
from pprint import pprint
pprint(result_dict)
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
File details
Details for the file sinta-scraper-2.2.1.tar.gz
.
File metadata
- Download URL: sinta-scraper-2.2.1.tar.gz
- Upload date:
- Size: 17.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3847130e5b70b7ebd6178b86409d4b01113ab07a536297ef6caab41f4b91988e |
|
MD5 | 7feed43a50b9a085d6e59a0b38816034 |
|
BLAKE2b-256 | 76313460a0512523e5dcc06dd5ec7a2403c53108348314d567ace08f9fcce120 |
File details
Details for the file sinta_scraper-2.2.1-py3-none-any.whl
.
File metadata
- Download URL: sinta_scraper-2.2.1-py3-none-any.whl
- Upload date:
- Size: 19.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd197c539e87ac6de55d358a8d63458a935b277a492caed4804f048bb6bb5481 |
|
MD5 | 6757a5caf7ec6e77ec0d05f0dd6ec920 |
|
BLAKE2b-256 | 8adf6778687c4a163a9766c804c09e72277cfe4e6a89a30b9ef90a70d397be68 |