fran

command module
v0.0.0-...-e7337ba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2023 License: MIT Imports: 16 Imported by: 0

README

fran

Börse Frankfurt web scraper for retrieving data from https://boerse-frankfurt.de.

Downloads master data from page urls and produces it in the specified format (i. e. CSV). Uses Chrome browser for scaping, so it must be installed.

Run

git clone https://github.com/szxp/fran
cd fran
go build
./fran urls -out="eu.txt" -force "https://www.boerse-frankfurt.de/equities/search?REGIONS=Europe&TYPE=1002&FORM=2&MARKET=REGULATED&ORDER_BY=NAME&ORDER_DIRECTION=ASC"
./fran export -format="csv" -out="eu.csv" -force "eu.txt"

Usage

Usage:
  fran <command> [<option>...] [<arg>...]

Commands:
  urls
    fran urls [-out=<file>] [--force] <search_url>...

    Collects page urls from search results.

    Example
    fran urls -out="eu.txt" "https://www.boerse-frankfurt.de/equities/search?REGIONS=Europe&TYPE=1002&FORM=2&MARKET=REGULATED&ORDER_BY=NAME&ORDER_DIRECTION=ASC"

  export
    fran export [-format=<format>] [-out=<file>] [--force] <urls_file>...

    Downloads master data from page urls and produces it in the specified format. See the supported formats at the -format option. Lines starting with hashmark (#) in the urls file are considered as comments and will be skipped.

    Example
    fran export -format="csv" -out="eu.csv" "eu.txt"

Options:
  -database string
        Database directory where the downloaded data will be saved and cached. (default "frandb")
  -force
        Overwrite output file if it already exists.
  -format string
        Format of the output file. Supported values are: csv. (default "csv")
  -out string
        Output file path. If not specified or an empty string is specified the output will be written to the standard output. Use the -format option to specify the format of the file.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL