Create custom feeds from websites without RSS. Use CSS selectors to specify the sections you want and organize them by categories.
go get github.com/holive/feedado
cd $GOPATH/src/github.com/holive/feedado
make run
You can preview your feeds by opening $GOPATH/src/github.com/holive/feedado/html/home.html
in your browser or create your own interface.
In the Feedado we have the Feed and the RSS. The Feed is the scheme from which the information used to generate the RSS is taken.
Endpoint: POST http://localhost:8080/feed
{
"source": "https://economia.estadao.com.br",
"description": "Notícias de Economia e Negócios | Estadão",
"category": "Economia",
"sections": [
{
"section_selector": ".row.management section",
"title_selector": ".text-wrapper h3",
"title_must_contain": "corona",
"subtitle_selector": ".text-wrapper p",
"subtitle_must_contain": "",
"url_selector": "a"
},
{
"section_selector": "#ultimas .lista section",
"title_selector": ".third",
"subtitle_selector": "p",
"url_selector": ".link-title"
}
]
}
Endpoint: PUT http://localhost:8080/feed
{
"source": "https://economia.estadao.com.br",
"description": "Notícias de Economia e Negócios | Estadão",
"category": "Economia",
"sections": [
{
"section_selector": ".row.management section",
"title_selector": ".text-wrapper h3",
"subtitle_selector": ".text-wrapper p",
"url_selector": "a"
}
]
}
Endpoint: DELETE http://localhost:8080/feed/{source}
Endpoint: GET http://localhost:8080/feed/{source}
Endpoint: GET http://localhost:8080/feed?limit=24&offset=0
Endpoint: GET http://localhost:8080/feed/categories
Endpoint: GET http://localhost:8080/rss?limit=24&offset=0
Endpoint: GET http://localhost:8080/rss?limit=24&offset=0
Endpoint: DELETE http://localhost:8080/rss/{source}
Endpoint: POST http://localhost:8081/feedado-worker/feed
Endpoint: POST http://localhost:8081/feedado-worker/feed/category/{category}
- Implement a user layer