Skip to content

TUVIMEN/elektroda-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

elektroda-scraper

A bash script for scraping elektroda forum to json.

Requirements

Installation

install -m 755 elektroda-scraper /usr/bin

Supported links formats

https://www.elektroda.pl
sitemap
elektroda
https://www.elektroda.pl/forum-gf-[0-9]+
forum-gf-[0-9]+
forums
https://www.elektroda.pl/rtvforum/forum[0-9]+.html
forum[0-9]+
forum[0-9]+-[0-9]+
https://www.elektroda.pl/rtvforum/topic[0-9]+.html
topic[0-9]+
[0-9]+

Json format

Here's json from some issue on elektroda

Usage

elektroda-scraper directory [URLS...]

All options should be specified before the directory.

The script writes every question to file in the directory (without overwriting them) and names of the files is the ids of questions.

Download issues from sitemap to directory x

elektroda-scraper x sitemap

Download issues from forums to directory x

elektroda-scraper x forums

Download some issues to directory x

elektroda-scraper x 3044759 924997 3188141 https://www.elektroda.pl/rtvforum/topic3300674.html

Download issues from forum 112 to directory x

elektroda-scraper x forum112

Get some help

elektroda-scraper -h

About

A bash script for scraping elektroda forum to json

Topics

Resources

License

Stars

Watchers

Forks

Languages