Mercon is a data scraper application written in Go that collects data from various sources and stores it in a PostgreSQL database.
mercon/
├── cmd/
│ └── mercon/ # Application entrypoint
│ └── main.go
├── internal/ # Internal packages
│ ├── database/ # Database connection and operations
│ ├── models/ # Database models
│ └── scraper/ # Scraping logic
├── .env.example # Example environment variables
├── go.mod # Go module file
├── go.sum # Go dependencies checksums
└── README.md # This file
- Go 1.20 or higher
- PostgreSQL database
- Git
-
Clone the repository:
git clone https://github.com/yourusername/mercon.git cd mercon
-
Install dependencies:
go mod download
-
Set up environment variables:
cp .env.example .env
Edit the
.env
file with your database credentials and other configurations. -
Run the application:
go run cmd/mercon/main.go
To add a new data source to scrape, extend the scraper package and add the appropriate models in the models package.
See the LICENSE file for details.
# Clone the repository
git clone https://github.com/heywinit/mercon.git
cd mercon
# Install dependencies
bun install
# Run tests
bun test
# Run example
bun run examples/basic.ts
Apache 2.0
Contributions are welcome! Please feel free to submit a Pull Request.