{"id":17834673,"url":"https://github.com/bendog/fuelwatch_demo","last_synced_at":"2025-04-02T12:42:39.266Z","repository":{"id":96330690,"uuid":"235954223","full_name":"bendog/fuelwatch_demo","owner":"bendog","description":"Demo code from the Fuelwatch Workshop class","archived":false,"fork":false,"pushed_at":"2020-01-24T07:13:07.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-08T03:44:45.919Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bendog.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2020-01-24T06:54:27.000Z","updated_at":"2020-01-24T07:13:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"9c1e03a3-9610-44bb-81da-5e0dfcfd7825","html_url":"https://github.com/bendog/fuelwatch_demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendog%2Ffuelwatch_demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendog%2Ffuelwatch_demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendog%2Ffuelwatch_demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendog%2Ffuelwatch_demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bendog","download_url":"https://codeload.github.com/bendog/fuelwatch_demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246819749,"owners_count":20839094,"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","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":[],"created_at":"2024-10-27T20:09:30.188Z","updated_at":"2025-04-02T12:42:39.241Z","avatar_url":"https://github.com/bendog.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fuel watch workshop demo code\n\nSome demo examples of python code from the 2020 fuel watch workshop night 1\n\n## requirements\n\n```pip install requests feedparser```\n\nto run app.py you will also need flask\n\n```pip install flask```\n\n## files\n\n### get_feed.py\n\nthis file retrieves the RSS feed and outputs the content to `output.json`.\nif output.json exists, it will read that version rather than fetch the content again.\nI mostly added this feature so i could test the code whilst i was offline on a plane.\n\n### fuelwatch.py\n\nthis file will output the conent to a very simple html table, using string substitution\n\nto run this script type `python fuelwatch.py`\n\nthen check the file `output.html`\n\n### jinjary.py\n\nthis file will do the same thing, but rather than pure python, it uses the jinja2 templating library, to insert the 'context' into a html template\n\nto run this script type `python jinjary.py`\n\nthen check the file `output.html`\n\n### app.py\n\nthis file uses the same jinja2 template, but will run a flask web app to server them.\n\nto run flask type\n`python -m flask run`\n\nthen go to \u003chttp://127.0.0.1:5000\u003e in your web browser","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendog%2Ffuelwatch_demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbendog%2Ffuelwatch_demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendog%2Ffuelwatch_demo/lists"}