{"id":18686507,"url":"https://github.com/operavaria/instant-serotonin","last_synced_at":"2026-05-19T07:10:22.575Z","repository":{"id":219759986,"uuid":"748982562","full_name":"OperaVaria/instant-serotonin","owner":"OperaVaria","description":"A simple webapp that scrapes the internet for cute animal pictures.","archived":false,"fork":false,"pushed_at":"2026-02-15T01:04:11.000Z","size":2108,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-15T08:15:17.844Z","etag":null,"topics":["api","capybara","flask","hedgehog","manul","memes","pexels","pixabay","python","reddit","sand-cat","unsplash","web-app"],"latest_commit_sha":null,"homepage":"https://www.serotonin.fun/","language":"Python","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/OperaVaria.png","metadata":{"files":{"readme":"docs/README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-01-27T08:23:14.000Z","updated_at":"2026-02-15T01:04:14.000Z","dependencies_parsed_at":"2024-03-25T21:29:42.350Z","dependency_job_id":"4ea2f827-1009-42be-9826-84cb36599f1d","html_url":"https://github.com/OperaVaria/instant-serotonin","commit_stats":null,"previous_names":["operavaria/instant-serotonin"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/OperaVaria/instant-serotonin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OperaVaria%2Finstant-serotonin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OperaVaria%2Finstant-serotonin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OperaVaria%2Finstant-serotonin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OperaVaria%2Finstant-serotonin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OperaVaria","download_url":"https://codeload.github.com/OperaVaria/instant-serotonin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OperaVaria%2Finstant-serotonin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33205699,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"online","status_checked_at":"2026-05-19T02:00:06.763Z","response_time":58,"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":["api","capybara","flask","hedgehog","manul","memes","pexels","pixabay","python","reddit","sand-cat","unsplash","web-app"],"created_at":"2024-11-07T10:27:54.644Z","updated_at":"2026-05-19T07:10:22.569Z","avatar_url":"https://github.com/OperaVaria.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Instant Serotonin\n\nThis is the source code for a simple web app that scrapes the internet for cute\nanimal pictures, and displays one at random upon user request.\nIt is mainly written in Python, utilising the Flask web framework.\nThe frontend component is a standard HTML-CCS-JS website, with a simple custom styling.\n\n## Functionality\n\nA scheduled script (collect_script.py) gathers data from pre-set sources every night,\nand stores the information in pickle files (./data/). The raw data is then read when Flask\nassembles the requested HTML page, and a random post is selected.\n\nCurrently scraped sources: Pixabay, Pexels, Unsplash, and thematic subreddits.\n\nThe reddit scraping function uses the [PRAW module by Bryce Boe](https://github.com/praw-dev/praw).\nServer-side Flask sessions are utilised (via the [Flask-Session extension]( https://github.com/pallets-eco/flask-session))\nto avoid sending the same results to the same user multiple times.\n\nThe HTML-CSS side has a responsive, Flexbox layout. It is optimized to display correctly on all screen types.\n\n## Screenshots\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./assets/screenshots/main.jpg\" alt=\"index.html top\" height=auto width=\"700\"\u003e\n  \u003cimg src=\"./assets/screenshots/main_2.jpg\" alt=\"index.html bottom\" height=auto width=\"700\"\u003e\n  \u003cimg src=\"./assets/screenshots/manul.jpg\" alt=\"manul.html\" height=auto width=\"700\"\u003e\n  \u003cimg src=\"./assets/screenshots/capybara.jpg\" alt=\"capybara.html\" height=auto width=\"700\"\u003e\n\u003c/p\u003e\n\n## Other\n\nThe currently running version is accessible: **[here](https://www.serotonin.fun/)**.\n\nSources of the static images used in this project: **[image_sources.md](image_sources.md)**.\n\nFont utilized: [Roboto Light designed by Christian Robertson](https://fonts.google.com/specimen/Roboto).\n\n**[Contact](mailto:lcs_it@proton.me)**\n\n[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foperavaria%2Finstant-serotonin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foperavaria%2Finstant-serotonin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foperavaria%2Finstant-serotonin/lists"}