


Fitter - Open Source no-code tool for map-reduce data from different source and even more!
Hello everyone!
I am Pxyup and today i want represent for you by open source project Fitter.
PxyUp
/
fitter
New way for collect information from the API's/Websites
Fitter Fitter CLI
Fitter - new way for collect information from the API's/Websites
Fitter CLI - small cli command which provide result from Fitter for test/debug/home usage
Fitter Lib - library which provide functional of fitter CLI as a library
Way to collect information
- Server - parsing response from some API's or http request(usage of http.Client)
- Browser - emulate real browser using chromium docker playwright/cypress and get DOM information
- Static - parsing static string as data
Format which can be parsed
- JSON - parsing JSON to get specific information
- XML - parsing xml tree to get specific information
- HTML - parsing dom tree to get specific information
- XPath - parsing dom tree to get specific information but by xpath
Use like a library
go get github.com/PxyUp/fitter
go get github.com/PxyUp/fitter
…How it was created
In 2023, I worked on an idea called Trip Searcher:
go get github.com/PxyUp/fitter
The Trip Searcher would monitor flights and return potential routes from the starting city, including total prices to various destinations, and send notifications to Telegram with:
package main import ( "fmt" "github.com/PxyUp/fitter/lib" "github.com/PxyUp/fitter/pkg/config" "log" "net/http" ) func main() { res, err := lib.Parse
For this setup, I needed a list of countries, cities, and airport codes to plug into the sites mentioned. During development, I started thinking about how convenient it would be if all this information could be easily combined and parsed to streamline requests, which led to the idea for a project I call Fitter.
P.S.: This project was for personal use.
Fitter CLI
A no-code map-reducer that returns data in user-friendly (JSON) or custom formats, suitable for storage in a database or transmission via HTTP.
Features:
- Supports parsing through HTML (query), JSON (gjson), XML, and xpath parsers.
- Retrieves data as a browser would, using Docker, Playwright( stealth mode), HTTP Client, Cache, File, or propagated fields, with support for custom plugins.
- Provides proxy support for Playwright and HTTP clients.
- Can send or store information to a file, webhook, console, and more via plugins.
- Handles all data types: int, float, bool, array, object, null, and string.
- Combines (map-reduce) and transforms fields.
- Utilizes the powerful expr library for template syntax, which is available across the application.
- Offered as a standalone binary and Docker version.
- Allows limits on request counts or instances for browser/Docker usage.
Examples
Static generation:
Here we will just generate static array from hardcoded
1. You enter a budget. 2. You specify a starting city or country. 3. You set the trip duration and a range of possible start and end dates.
1. Flight costs (parsed from Google or Kiwi). 2. Hotel prices (from Airbnb or Booking). 3. Food costs (retrieved from Numbeo).
Get current time
Get information from the website and return to user.
./fitter_cli_v1.0.18-darwin-amd64 --url=https://raw.githubusercontent.com/PxyUp/fitter/refs/heads/master/examples/cli/config_static_connector.json
[ "PAGE: 1 INDEX: 0", "PAGE: 2 INDEX: 1", "PAGE: 3 INDEX: 2", "PAGE: 4 INDEX: 3", "PAGE: 5 INDEX: 4" ]
Get current Steam Sales
That will create sales.md
wile in provided directoryGet best news from HackerNews Comment list for each
In this config we using template syntax for propagate result from the first request to next one.
go get github.com/PxyUp/fitter
package main import ( "fmt" "github.com/PxyUp/fitter/lib" "github.com/PxyUp/fitter/pkg/config" "log" "net/http" ) func main() { res, err := lib.Parse
Scrape all images from website and store them locally
1. You enter a budget. 2. You specify a starting city or country. 3. You set the trip duration and a range of possible start and end dates.
1. Flight costs (parsed from Google or Kiwi). 2. Hotel prices (from Airbnb or Booking). 3. Food costs (retrieved from Numbeo).
Fitter
Fitter it is extended version of the Fitter CLI which have:
- Http server for trigger
- Return response as telegram message/webhook
- And that currently did not have documentation :)
Usage
This tools can be used in different purpose:
- Web scrapper
- Data scrapper with plugins
- Produce specific load testing
- Build chat bots - i use it for automate my telegram channel
For example this job every day send best Dev.to aritcles:
Plans
- Add more browser tools. Like click/scroll(currently can be done only by JS injection)
- Improve template syntax
- Add custom template editor config editor
- May be will think about SASS for fitter CLI for run custom workflow for customers and return result to APP/Watch/etc.
Really wait for your feedback! Ask any question i will ask
The above is the detailed content of Fitter - Open Source no-code tool for map-reduce data from different source and even more!. For more information, please follow other related articles on the PHP Chinese website!

Mastering the strings package in Go language can improve text processing capabilities and development efficiency. 1) Use the Contains function to check substrings, 2) Use the Index function to find the substring position, 3) Join function efficiently splice string slices, 4) Replace function to replace substrings. Be careful to avoid common errors, such as not checking for empty strings and large string operation performance issues.

You should care about the strings package in Go because it simplifies string manipulation and makes the code clearer and more efficient. 1) Use strings.Join to efficiently splice strings; 2) Use strings.Fields to divide strings by blank characters; 3) Find substring positions through strings.Index and strings.LastIndex; 4) Use strings.ReplaceAll to replace strings; 5) Use strings.Builder to efficiently splice strings; 6) Always verify input to avoid unexpected results.

ThestringspackageinGoisessentialforefficientstringmanipulation.1)Itofferssimpleyetpowerfulfunctionsfortaskslikecheckingsubstringsandjoiningstrings.2)IthandlesUnicodewell,withfunctionslikestrings.Fieldsforwhitespace-separatedvalues.3)Forperformance,st

WhendecidingbetweenGo'sbytespackageandstringspackage,usebytes.Bufferforbinarydataandstrings.Builderforstringoperations.1)Usebytes.Bufferforworkingwithbyteslices,binarydata,appendingdifferentdatatypes,andwritingtoio.Writer.2)Usestrings.Builderforstrin

Go's strings package provides a variety of string manipulation functions. 1) Use strings.Contains to check substrings. 2) Use strings.Split to split the string into substring slices. 3) Merge strings through strings.Join. 4) Use strings.TrimSpace or strings.Trim to remove blanks or specified characters at the beginning and end of a string. 5) Replace all specified substrings with strings.ReplaceAll. 6) Use strings.HasPrefix or strings.HasSuffix to check the prefix or suffix of the string.

Using the Go language strings package can improve code quality. 1) Use strings.Join() to elegantly connect string arrays to avoid performance overhead. 2) Combine strings.Split() and strings.Contains() to process text and pay attention to case sensitivity issues. 3) Avoid abuse of strings.Replace() and consider using regular expressions for a large number of substitutions. 4) Use strings.Builder to improve the performance of frequently splicing strings.

Go's bytes package provides a variety of practical functions to handle byte slicing. 1.bytes.Contains is used to check whether the byte slice contains a specific sequence. 2.bytes.Split is used to split byte slices into smallerpieces. 3.bytes.Join is used to concatenate multiple byte slices into one. 4.bytes.TrimSpace is used to remove the front and back blanks of byte slices. 5.bytes.Equal is used to compare whether two byte slices are equal. 6.bytes.Index is used to find the starting index of sub-slices in largerslices.

Theencoding/binarypackageinGoisessentialbecauseitprovidesastandardizedwaytoreadandwritebinarydata,ensuringcross-platformcompatibilityandhandlingdifferentendianness.ItoffersfunctionslikeRead,Write,ReadUvarint,andWriteUvarintforprecisecontroloverbinary


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

WebStorm Mac version
Useful JavaScript development tools

SublimeText3 Linux new version
SublimeText3 Linux latest version

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Atom editor mac version download
The most popular open source editor

Dreamweaver CS6
Visual web development tools
