GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - malvere/GoSber: Pure Golang SberMegaMarket parser!

BranchesTags
Open more actions menu

Latest commit

 

History

37 Commits
37 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
cmd/sber-scrape
cmd/sber-scrape
 
 
config
config
 
 
internal
internal
 
 
.DS_Store
.DS_Store
 
 
.gitignore
.gitignore
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
nixpacks.toml
nixpacks.toml
 
 

Repository files navigation

GoSber

Go Postgres SQLite

Overview

GoSber is a versatile GoLang script for web scraping. It offers multiple modes for scraping, the ability to specify search prompts, and the option to scrape specific links. Additionally, it can automatically connect to a PostgreSQL database using the DB_URL environment variable.

Will soon include parser and promo duplicator. Functionality will be combined in one project SberTool

Features

  • Selection of different modes for customizable scraping
  • Search prompts to target specific content
  • Scraping of data from specific URLs
  • Automatic connection to a PostgreSQL database using DB_URL

Usage

To get started with sber-scrape, follow the instructions below:

Using pre-build executables

  1. Download appropriate executable depending on your platform from releases

  2. Run with with flags if needed

    ./sber-scrape -mode <mode> -seatch <search-prompt> -table-name <url>

Building from source

  1. Clone this repository:

    git clone https://github.com/malvere/GoSber.git
    cd GoSberScrape
  2. Build the project

        go build
  3. Run

    ./sber-scrape -mode <mode> -search <search-prompt> 

    3.1 Available Flags:

    -mode - Mode to run in. makes HTTP requests and parses HTML body, while searches for .html file. uses API requests and parses JSON body (preferred method).

    -search - Searhces with specific prompt.

    -url - Parses using predifined url. You can set up your search prompt with filters and then copy the url from megamarket and paste it to the scraper.

    -table-name - Tables name in the DataBase.

    -pages - How many pages to parse.

    3.2 Usage:

    If -search is passed, then it will search by your specific prompt.

    If -url is passed, search will be done according to the specified link.

PostgreSQL Connection

If you have a PostgreSQL database, sber-scrape can connect to it by setting the DB_URL environment variable. The script will use it to establish a connection.

export DB_URL="postgres://username:password@localhost/database"
./sber-scrape

.csv support

If DB_URL is not specified, a .csv file with parse results will be generated near the executable.

License

MIT

Contribution

Contributions are welcome! Feel free to open issues and submit pull requests to help improve this project.

About

Pure Golang SberMegaMarket parser!

Topics

csv-exportgolangmegamarketparserpostgresqlsber

Resources

Readme
Activity

Stars

10 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.