Search by

lyseontech / scielo-scraping

librecodecoop

SciELO webscraping

Package info

github.com/FiocruzLivre/scielo-scraping

pkg:composer/lyseontech/scielo-scraping

Statistics

Installs: 15

Dependents: 0

Suggesters: 0

Stars: 5

Open Issues: 0

v2.0.0 2026-12-02 23:24 UTC

This package is auto-updated.

Last update: 2026-12-02 23:38:22 UTC


README

Test Status

Scielo Scraping

Run web scraping in a specific SciELO journal and download all publications.

SciELO template support: scraping targets www.scielo.br This has only been verified against the CSP journal recovery — other SciELO journals may need adjustments before this can be relied on for them.

Install

Clone this repository and install PHP dependencies with Composer:

git clone git@github.com:FiocruzLivre/scielo-scraping.git
cd scielo-scraping
composer install

The scielo:download-* commands (scraping SciELO) work standalone, no other requirements. The ojs:import command additionally needs a working OJS 3.4 installation on the same machine/container — it bootstraps that OJS instance directly (not over HTTP), so point it at your install with --ojs-basedir=/path/to/ojs (default /ojs) or the OJS_WEB_BASEDIR environment variable.

A Docker-based local dev environment is also provided (docker-compose.yml: a PHP 8.2 container plus a MariaDB service) — copy .env.example to .env and run docker compose up.

How to use?

Run the follow command to see commands list:

php bin/scielo

The main command:

php bin/scielo scielo:download-all --help
Usage:
  scielo:download-all [options] [--] <slug>

Arguments:
  slug                     Slug of journal

Options:
      --year[=YEAR]        Year of journal (multiple values allowed)
      --volume[=VOLUME]    Volume number (multiple values allowed)
      --issue[=ISSUE]      Issue name (multiple values allowed)
      --article[=ARTICLE]  Article name
      --output[=OUTPUT]    Output directory [default: "output"]
      --assets[=ASSETS]    Assets directory [default: "assets"]

All commands:

 ojs
  ojs:import-issue          
  ojs:setup-ojs             Setup OJS, only use if you don't have OJS installed.
 scielo
  scielo:download-all       
  scielo:download-binary    
  scielo:download-metadata