{"id":16717216,"url":"https://github.com/mseri/tweetpix","last_synced_at":"2025-03-15T09:41:56.903Z","repository":{"id":69444528,"uuid":"39068634","full_name":"mseri/tweetpix","owner":"mseri","description":"A small script, on its way to become a bot, to get appropriate CC images from flickr, pixellize them and publish them on twitter","archived":false,"fork":false,"pushed_at":"2015-11-12T21:19:09.000Z","size":144,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-22T00:36:02.371Z","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":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mseri.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}},"created_at":"2015-07-14T10:29:15.000Z","updated_at":"2022-07-07T16:34:27.000Z","dependencies_parsed_at":"2023-02-27T20:15:21.404Z","dependency_job_id":null,"html_url":"https://github.com/mseri/tweetpix","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/mseri%2Ftweetpix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mseri%2Ftweetpix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mseri%2Ftweetpix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mseri%2Ftweetpix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mseri","download_url":"https://codeload.github.com/mseri/tweetpix/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243713402,"owners_count":20335566,"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-12T21:30:51.078Z","updated_at":"2025-03-15T09:41:56.883Z","avatar_url":"https://github.com/mseri.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tweetpix\n\nA small script that gets CC images from flickr, pixellizes them and publishes them on your twitter.\n\nCreate a file called `keys.py` in the same folder as the rest of the scripts, then add the following lines\n```{python}\nkeys = dict(\n    consumer_key =          'STUB',\n    consumer_secret =       'STUB',\n    access_token =          'STUB',\n    access_token_secret =   'STUB',\n    flickr_key =            'STUB',\n    flickr_secret =         'STUB',\n)\n```\n(where you replace the STUBS with your API Keys obtained from flickr and twitter).\n\nThen the usage is pretty simple:\n```{bash}\n./tweetpix.py SEARCH_STRING\n```\nwhere `SEARCH_STRING` is some string used as search on flickr. The script will download a CC licensed picture searching for `SEARCH_STRING`, save it locally, pixellize it and tweet it.\n\nE.g. \n```\n./tweetpix.py \"london fireworks\"\n(1200, 630)\n#pixellized version of www.flickr.com/photos/24101343@N08/6824713499. Search 'london fireworks', baseline 72px, long side 1200px\n```\nproduced the following tweet https://twitter.com/marcelloseri/status/664914489230426112\n\n## Pixellize\nThe pixellizer library can be used as a standalone cli application:\n\n```{bash}\n./pixellize.py\nPixellize\nGenerates a \"pixellated\" copy of IMAGEFILE.\n\nUsage:\n  pixellize.py [--length=L] [--pixels=P] IMAGEFILE\n  pixellize.py -h | --help\n\nOptions:\n  -h --help     Show this screen.\n  --length=L    Lenght of the longest edge [default: 288].\n  --pixels=P    Number of pixels to appear on the longest edge [default: 72].\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmseri%2Ftweetpix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmseri%2Ftweetpix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmseri%2Ftweetpix/lists"}