{"id":28824115,"url":"https://github.com/lastaapps/silicon-gallery","last_synced_at":"2025-10-12T00:33:07.127Z","repository":{"id":294028819,"uuid":"985786581","full_name":"Lastaapps/silicon-gallery","owner":"Lastaapps","description":"A command line utility used to watch list of photo albums published by Silicon Hill and send them to a Discord channel.","archived":false,"fork":false,"pushed_at":"2025-05-24T10:12:56.000Z","size":58,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-19T01:03:38.899Z","etag":null,"topics":["discord-bot","haskell","scraping"],"latest_commit_sha":null,"homepage":"https://www.siliconhill.cz/photogalleries","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Lastaapps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-18T14:25:48.000Z","updated_at":"2025-05-24T10:12:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"953d9f42-baa6-4c10-918e-6ce91bf77b12","html_url":"https://github.com/Lastaapps/silicon-gallery","commit_stats":null,"previous_names":["lastaapps/silicon-gallery"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Lastaapps/silicon-gallery","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lastaapps%2Fsilicon-gallery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lastaapps%2Fsilicon-gallery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lastaapps%2Fsilicon-gallery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lastaapps%2Fsilicon-gallery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lastaapps","download_url":"https://codeload.github.com/Lastaapps/silicon-gallery/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lastaapps%2Fsilicon-gallery/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279009508,"owners_count":26084609,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["discord-bot","haskell","scraping"],"created_at":"2025-06-19T01:03:40.910Z","updated_at":"2025-10-12T00:33:07.117Z","avatar_url":"https://github.com/Lastaapps.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Silicon Gallery\n\nA command line utility used to watch list of photo albums published\nby [Silicon Hill](https://www.siliconhill.cz/photogalleries)\nand send them to a Discord channel.\n\n## Usage\n\nSet and source environment variables according to `env_example`.\n`ALBUM_BOT_DISCORD_BOT_TOKEN` is a bot token obtained from Discord developer portal,\n`ALBUM_BOT_DISCORD_CHANNEL_ID` is a Discord channel ID to post into,\n`ALBUM_BOT_STORAGE_FILE` is a file name to store and read from already published photo albums,\n`ALBUM_BOT_REFRESH_DELAY_MINUTES` is a refresh delay in minutes after which the page is scraped again, and\n`ALBUM_BOT_POST_N_LATEST` is a number of latest photo albums to post, so the chats are not overflown.\n\n## Implementation milestones\n\n- read configuration from environment variables\n- fetch HTML\n- parse HTML (using a library) and extract models\n- File IO - check already published photo albums\n- Discord API - send a message (HTTP endpoint call with custom flags)\n- File IO - store that a new album was just posted\n- repeat every n minutes\n- build on CI\n\n## Notable Haskell features\n\n- Combined Monad types using `ExceptT`\n- Http requests using `req` library (self implemented rate limiting retry)\n- Tests using `HSpec` and `QuickCheck` and docs with `Haddock`\n- Hidden constructors (where it makes sense like `EventID`)\n- and more...\n\n## Used Haskell language extensions\n\n```haskell\n-- Have to be added\n{-# LANGUAGE DeriveDataTypeable #-} -- Allows automatic derivation of the `Data` and `Typeable` type classes.\n{-# LANGUAGE DeriveGeneric #-}      -- Allows automatic derivation of the `Generic` type class.\n{-# LANGUAGE GADTs #-}              -- Extends Haskell's type system to allow Generalized Algebraic Data Types.\n{-# LANGUAGE RankNTypes #-}         -- Allows quantification of types at arbitrary positions (rank-N types).\n\n-- Enabled globally\n{-# LANGUAGE DuplicateRecordFields #-} -- Allows record fields with the same name in different data types.\n{-# LANGUAGE OverloadedRecordDot #-} -- Enables accessing record fields using the dot notation (e.g., `record.field`).\n{-# LANGUAGE OverloadedStrings #-}   -- Allows string literals to be interpreted as instances of `IsString`.\n{-# LANGUAGE RecordWildCards #-}     -- Allows all fields of a record to be brought into scope without listing them individually.\n{-# LANGUAGE NamedFieldPuns #-}      -- Allows pattern matching on specific record fields by name, even if others are present.\n{-# LANGUAGE MultiParamTypeClasses #-} -- Enables type classes to have more than one type parameter.\n```\n\n## License\n\nSilicon Gallery is licensed under the `GNU GPL v3.0` license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flastaapps%2Fsilicon-gallery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flastaapps%2Fsilicon-gallery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flastaapps%2Fsilicon-gallery/lists"}