An Express.js application that filters events from an iCal (.ics) feed URL based on keywords
370
This Express.js application provides an API to filter events from an iCal feed based on multiple keywords. The iCal feed URL is encoded in Base64 and passed as a query parameter, while keywords are provided as a comma-separated list.
GET /filter-icalFilters events from an iCal feed based on provided keywords.
Query Parameters:
url (Base64-encoded): The URL of the iCal feed.keywords (comma-separated): The keywords to filter events by.Example Request:
http://localhost:3000/filter-ical?url=aHR0cHM6Ly9leGFtcGxlLmNvbS9jYWxlbmRhci5pY3M=&keywords=meeting,holiday
Response:
The response will be a filtered iCal feed containing only the events that match the provided keywords.
Encode your iCal URL in Base64:
const url = 'https://example.com/calendar.ics';
const encodedUrl = Buffer.from(url).toString('base64');
console.log(encodedUrl); // Outputs: aHR0cHM6Ly9leGFtcGxlLmNvbS9jYWxlbmRhci5pY3M=
Call the API:
curl "http://localhost:3000/filter-ical?url=aHR0cHM6Ly9leGFtcGxlLmNvbS9jYWxlbmRhci5pY3M=&keywords=meeting,holiday"
url or keywords).This project is licensed under the MIT License - see the LICENSE file for details.
Feel free to open issues or pull requests if you have suggestions or improvements.
Content type
Image
Digest
sha256:b1fab1777…
Size
45.8 MB
Last updated
about 2 years ago
docker pull austinchou0126/ics-event-filter