API-CR Client Tool for BitTorrent Protocol Dossier Download

Slide Note
Embed
Share

Configure and use API-CR Client tool to download full dossiers using the BitTorrent Protocol. Set up the necessary configuration files, connectivity with Eudranet, and automation for periodic execution. Utilize the Excel file provided to specify dossiers and sequences for download, enhancing efficiency in acquiring desired data.


Uploaded on Sep 06, 2024 | 1 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. Download presentation by click this link. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

E N D

Presentation Transcript


  1. Solution Overview Download full dossier (using BitTorrent Protocol) Tool: API-CR Client (explained in this presentation)

  2. Use requirements PC / Server with OS (Windows, Linux, Unix, Mac...) and Java 7 installed Make sure you have connectivity with Eudranet. Set up the configuration files Settings.properties and To_Download.xlsx Download from http://listadomedicamentos.aemps.gob.es/apicr-client-3.1-dist.zip and unzip the solution in a folder Content of the apicr-client-3.1-dist.zip Run the following command from the folder created in previous step java -jar apicr-3.1.jar To automate the execution it is convenient to create a programmed task in your computer that be executed periodically (i.e. daily)

  3. Configuration files The Settings.properties File: It is a text file with several parameter_name = value pairs arranged by sections Section: Connection to the REST API API_DOMAIN API_DOMAIN = api-cr.eudra.org API_SCHEMA = https Provided by EMA. API_SCHEMA Section:Authentication againts REST API API_USER API_USER = CHANGEME API_PASSWORD = CHANGEME Provided by EMA. API_PASSWORD Section:Proxy support PROXY_HOST Provided by your IT Department PROXY_PORT PROXY_HOST = http://proxy... PROXY_PORT = ?? PROXY_USER = ???? PROXY_PASSWORD = ???? PROXY_USER Needed if the API-CR Client will access to EUDRANET through a Proxy PROXY_PASSWORD

  4. Configuration files The Settings.properties File: (continue) Path for .torrent files (where to deploy them): DOWNLOAD_PATH, i.e. DOWNLOAD_PATH = ./torrents/ To download all the sequences modified in the last N days. N_DAYS, i.e. N_DAYS = 1 Path of the Excel File that contains the dossiers and the sequences to download EXCEL_FILE. Blank to disable this option. The file includes three columns (dossier | full dossier | sequence to download), i.e. EXCEL_FILE = .conf//To_Download.xlsx Download full sequence or individual files PARTIAL_DOWNLOAD_LIST. Empty if you want to download the whole sequence, or a list of filenames separated by a colon if you want to download an specific set of files, i.e. PARTIAL_DOWNLOAD_LIST = index.xml, m1/eu/eu-regional.xml Resume partial downloads or re-download RESUME. The API client will download only files not previously downloaded skipping already downloaded files and resuming the partial downloads, i.e. RESUME = true

  5. Configuration files Using the Excel file, To_Download.xlsx , available in the zip file delivered, you can specify what dossiers you want to download. Usually bussines people know in advance the products number they have to look into. 1. In the column A Dossier are included all the dossiers product numbers you want to download. 2. In the column B Sequence # you can indicate a explicit sequence to download or let empty to download the full dossier. If you want to download several sequences, repeat the Dossier number in several rows with the sequence numbers desired.

  6. Configuration files The log4j.properties File: Text file with parameter_name = value format http://logging.apache.org/log4j/1.2/manual.html for more information about setting the log Use the standard configuration in the distributed package

More Related Content