vis-paperlist-be

VIS paperlist backend repository

https://github.com/vislab-ssu/vis-paperlist-be

Science Score: 31.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic links in README
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (0.2%) to scientific vocabulary
Last synced: 10 months ago · JSON representation ·

Repository

VIS paperlist backend repository

Basic Info
  • Host: GitHub
  • Owner: vislab-ssu
  • Language: Python
  • Default Branch: master
  • Homepage:
  • Size: 16.3 MB
Statistics
  • Stars: 1
  • Watchers: 0
  • Forks: 1
  • Open Issues: 2
  • Releases: 0
Created over 2 years ago · Last pushed almost 2 years ago
Metadata Files
Citation

Owner

  • Name: VIS Lab @ Soongsil University
  • Login: vislab-ssu
  • Kind: organization
  • Location: Korea, South

Citation (Citation/OpenCitation/OC_api.py)

import os
import csv
from requests import get
import json
from collections import defaultdict
from dotenv import load_dotenv

load_dotenv()

# HTTP 헤더 설정
HTTP_HEADERS = {"Authorization": os.getenv("OPEN_CITATION_KEY")}

# 'Result' 폴더가 없으면 생성
if not os.path.exists('Result'):
    os.makedirs('Result')

# CSV 파일에서 DOI 리스트를 읽기
doi_list = []
with open('paperlist_doi.csv', mode='r', encoding='utf-8') as csvfile:
    reader = csv.DictReader(csvfile)
    for row in reader:
        if 'DOI' in row:  # 'DOI' 열이 있는지 확인
            doi_list.append(row['DOI'])

# 인용 카운트를 저장할 딕셔너리
citing_counts = defaultdict(int)

# 각 DOI에 대해 API 호출 및 데이터 저장
for doi in doi_list:
    # API 호출을 위한 URL 구성
    API_CALL = f"https://opencitations.net/index/api/v1/references/{doi}"
    # HTTP GET 요청 수행
    response = get(API_CALL, headers=HTTP_HEADERS)

    if response.status_code == 200:
        # 응답 데이터를 JSON 형식으로 변환
        data = response.json()
        
        # 각 응답 아이템에서 'citing' 정보 추출 및 카운트
        for item in data:
            if 'citing' in item:
                citing_counts[item['citing']] += 1

        print(f"Processed DOI: {doi}")
    else:
        # API 호출 실패 시 메시지 출력
        print(f"Failed to fetch data for DOI: {doi}")

# 카운트 결과를 CSV 파일에 저장
with open('Result/citing_counts.csv', 'w', newline='', encoding='utf-8') as csvfile:
    writer = csv.writer(csvfile)
    writer.writerow(['Citing DOI', 'Count'])
    for citing_doi, count in citing_counts.items():
        writer.writerow([citing_doi, count])

print("Citing counts have been saved to Result/citing_counts.csv")

GitHub Events

Total
Last Year

Issues and Pull Requests

Last synced: about 2 years ago

All Time
  • Total issues: 10
  • Total pull requests: 7
  • Average time to close issues: 9 days
  • Average time to close pull requests: 1 day
  • Total issue authors: 1
  • Total pull request authors: 1
  • Average comments per issue: 0.1
  • Average comments per pull request: 0.14
  • Merged pull requests: 7
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 10
  • Pull requests: 7
  • Average time to close issues: 9 days
  • Average time to close pull requests: 1 day
  • Issue authors: 1
  • Pull request authors: 1
  • Average comments per issue: 0.1
  • Average comments per pull request: 0.14
  • Merged pull requests: 7
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • candosh (8)
Pull Request Authors
  • candosh (11)
Top Labels
Issue Labels
Feat (7) Refactor (2) Chore (1)
Pull Request Labels
Feat (7) Refactor (6) Comment (3)

Dependencies

package-lock.json npm
  • 139 dependencies
package.json npm
  • @types/express ^4.17.20 development
  • @types/node ^20.8.10 development
  • express ^4.18.2 development
  • nodemon ^3.0.1 development
  • ts-node ^10.9.1 development
  • typescript ^5.2.2 development
  • cors ^2.8.5
  • dotenv ^16.3.1
  • mysql2 ^3.6.5
yarn.lock npm
  • 138 dependencies
Dockerfile docker
  • node 20.9.0 build
.github/workflows/main.yml actions
  • actions/checkout v4 composite
  • actions/setup-node v3 composite
  • appleboy/ssh-action v1.0.3 composite