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 publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (7.7%) to scientific vocabulary
Last synced: 10 months ago · JSON representation ·

Repository

Basic Info
  • Host: GitHub
  • Owner: Rahul-ckrl
  • Language: Python
  • Default Branch: main
  • Size: 5.86 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created about 2 years ago · Last pushed about 2 years ago
Metadata Files
Readme Citation

README.md

python-api-citation-extractor

1 . Introduction
        This script fetches data from a specified API, processes it to find citations for given responses, and saves the results to a JSON file. The script includes functionality for handling errors during the              API request and excludes citations with empty links.
2 . Requirements
        Python 3.x
        requests library
        To install the requests library, use:
        pip install requests
3. Usage
        Ensure you have the requests library installed.
        Update the api_url variable with the appropriate API URL.
        Run the script to fetch, process, and save the data.
4 . Code Overview
        fetch_data
        Fetches data from the given API URL with error handling.
5 . find_citations
        Finds citations for a given response text based on sources.
6 . process_api_data
        Processes API data to extract responses and their citations.
7 . process_mock_data
        Processes mock data to extract responses and their citations.
8 . Testing with Mock Data
        The script includes a mock data set to test the find_citations function.
9 . Saving the Output
        The script saves the processed data to a JSON file.

Owner

  • Login: Rahul-ckrl
  • Kind: user

Citation (citations_output.json)

[
  {
    "response": "Yes, we offer online delivery services through major platforms like Swiggy and Zomato. You can also reserve a table directly from our website if you are planning to have breakfast!",
    "citations": [
      {
        "id": "71",
        "link": "https://orders.brikoven.com"
      },
      {
        "id": "8",
        "link": "https://www.brikoven.com/reservations"
      }
    ]
  }
]

GitHub Events

Total
Last Year