{ "info": { "author": "Shichao An", "author_email": "shichao.an@nyu.edu", "bugtrack_url": null, "classifiers": [ "Environment :: Console", "License :: OSI Approved :: BSD License", "Programming Language :: Python", "Programming Language :: Python :: 2" ], "description": "Twitter Photos\n==============\n\n.. image:: https://img.shields.io/pypi/v/twitter-photos.png\n :target: https://pypi.python.org/pypi/twitter-photos\n\n.. image:: https://travis-ci.org/shichao-an/twitter-photos.png?branch=master\n :target: https://travis-ci.org/shichao-an/twitter-photos\n\nTwitter Photos is a command-line tool to get photos from Twitter accounts.\n\n.. image:: https://asciinema.org/a/93714.png\n :target: https://asciinema.org/a/93714\n\nRequirements\n------------\n\n* python-twitter\n* requests\n* urllib3\n\nInstallation\n------------\n\nYou can install the package with pip::\n\n $ pip install twitter-photos\n\nOr, you can download a source distribution and install with these commands::\n\n $ python setup.py install\n\nHow It Works\n------------\n\nThe command-line front-end of Twitter Photos, \"twphotos\", downloads photos from specified Twitter accounts into individual directories each named after username. It hits the Twitter API as little as possible to retrieve photos links and download each link separately. You can view the links yourself and pipe them to other programs such as ``wget``. You can specifiy photo size, number of photos to get, and whether to download only new photos since last downloads.\n\n\nSetup\n-----\n\nCreate a config file at ~/.twphotos specifying your Twitter credentials (you can create an app and get your keys at `Twitter Application Management `_)::\n\n [credentials]\n consumer_key = your_consumer_key\n consumer_secret = your_consumer_secret\n access_token_key = your_access_token_key\n access_token_secret = your_access_token_secret\n\nNote that the values on the right side of ``=`` should not contain the quotes; they are just themselves since this file is in INI format.\n\nUsage\n-----\nThe simplest usage is to run \"twphotos\" from command-line without any options. This will download all photos from the current authenticated user (you)::\n\n $ twphotos\n\nDownload all photos from an existing user other than yourself with ``-u`` option followed by username. \"twphotos\" will automatically create a directory with the specified username and put downloaded photos in there::\n\n $ twphotos -u wired\n\nDownload *n* most recent photos from a user using ``-n`` followed by number::\n\n $ twphotos -u wired -n 20\n\nDownload photos to a directory other than the current one::\n\n $ twphotos -u wired -o /path/to/dir\n\nEnable \"incremental download\" to download new photos since the last downloads with ``-i``::\n\n $ twphotos -u wired -i\n\nEnable \"parallel download\" to speedup the downloads using the ``-r`` switch::\n\n $ twphotos -u wired -r\n\nPrint username, tweet ids, and URLs instead of downloading them with ``-p`` switch::\n\n $ twphotos -u wired -p\n\nExclude replies tweets using ``-e`` switch::\n\n $ twphotos -u wired -e\n\nDownload small-sized photos ::\n\n $ twphotos -u wired -s small\n\nYou can retrieve URLs only with ``cut`` command::\n\n $ twphotos -u wired -p | cut -d ' ' -f3\n\nCommand-line Options\n~~~~~~~~~~~~~~~~~~~~\nThe \"twphotos\" command accepts the following options:\n\n -u USER, --user USER user account\n -l LIST_SLUG, --list LIST_SLUG\n list slug with --user as list owner\n -o OUTDIR, --outdir OUTDIR\n output directory\n -p, --print print media urls and tweet ids instead of download\n -r, --parallel enable parallel download\n -n NUM, --num NUM number of most recent photos to download\n -i, --increment download only new photos since last download\n -e, --exclude_replies\n exclude replies\n -s SIZE, --size SIZE photo size (``orig``, ``large``, ``medium``, ``small`` and ``thumb``)\n -t TYPE, --type TYPE timeline type (``user`` and ``favorites``)\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/shichao-an/twitter-photos", "keywords": "twitter photos", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "twitter-photos", "package_url": "https://pypi.org/project/twitter-photos/", "platform": "", "project_url": "https://pypi.org/project/twitter-photos/", "project_urls": { "Homepage": "https://github.com/shichao-an/twitter-photos" }, "release_url": "https://pypi.org/project/twitter-photos/0.4.0/", "requires_dist": null, "requires_python": "", "summary": "Command-line tool to get photos from Twitter accounts.", "version": "0.4.0" }, "last_serial": 3667478, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "65fcb773f43b404fb2ca58500a654940", "sha256": "770f4ab88848c1708769a1c2c90ca8b87974742321fd9b1ab345addfd7d54112" }, "downloads": -1, "filename": "twitter-photos-0.1.0.tar.gz", "has_sig": false, "md5_digest": "65fcb773f43b404fb2ca58500a654940", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7326, "upload_time": "2014-01-31T08:50:16", "url": "https://files.pythonhosted.org/packages/37/52/7a502084a982e25358037b95888d0fa5d7edb49afdc29d80cfb1668d7b97/twitter-photos-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "7cdff07338d12a89ff61e06f7d7900ba", "sha256": "6db1fe9f8f3062283a2b9dff08cf9ce2b1dd7098f8112ff6d0c481e4ccff0da7" }, "downloads": -1, "filename": "twitter-photos-0.1.1.tar.gz", "has_sig": false, "md5_digest": "7cdff07338d12a89ff61e06f7d7900ba", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 82599, "upload_time": "2014-02-20T08:59:26", "url": "https://files.pythonhosted.org/packages/c1/ba/0a0a77de74f98403dd7f35727b3ee972d0a4433df57fef6864e228dddc1e/twitter-photos-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "6e244c01e02b5d2529feee89381399bf", "sha256": "4fc937b35854c34a5b767fee8876f891856d4f02fff056eab7b4e99e5892c549" }, "downloads": -1, "filename": "twitter-photos-0.2.0.tar.gz", "has_sig": false, "md5_digest": "6e244c01e02b5d2529feee89381399bf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 82900, "upload_time": "2016-01-11T06:13:05", "url": "https://files.pythonhosted.org/packages/7d/8d/4882f719fe4a451677c1d3ddc5f97b6e16ba23234c6f315fef26c363ba9c/twitter-photos-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "3af4a1fdefeb4ca938331196b90aba64", "sha256": "0ca75f612b567c328557e54be42dcd1b0e1ce07cc8765c83b562e63b8e719976" }, "downloads": -1, "filename": "twitter-photos-0.3.0.tar.gz", "has_sig": false, "md5_digest": "3af4a1fdefeb4ca938331196b90aba64", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 83222, "upload_time": "2016-08-21T09:26:39", "url": "https://files.pythonhosted.org/packages/39/de/0e333cd1c1a2941c5360ed74f78c9bf6e467384af6644b637fb768e53ba0/twitter-photos-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "84fb8a4189d15af877dd5fdebbf7e2ad", "sha256": "45efb5607a34ef3038613224800d95da0fc6bd50ca2547d3c1d6a0293f617c0c" }, "downloads": -1, "filename": "twitter-photos-0.3.1.tar.gz", "has_sig": false, "md5_digest": "84fb8a4189d15af877dd5fdebbf7e2ad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 83314, "upload_time": "2017-02-19T10:30:27", "url": "https://files.pythonhosted.org/packages/87/46/99b8a23c7d04610565da7585da11135865ab70e0a54b9ea3284966444dc6/twitter-photos-0.3.1.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "22ef81c009a9e3a5321fba52c378a8ec", "sha256": "34986152ecdcfac543b69bcf6722ddb051ae08c5a2cd637089da519532fc8672" }, "downloads": -1, "filename": "twitter-photos-0.4.0.tar.gz", "has_sig": false, "md5_digest": "22ef81c009a9e3a5321fba52c378a8ec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 82997, "upload_time": "2018-03-14T04:14:47", "url": "https://files.pythonhosted.org/packages/b0/d9/40da537d49971c07f5c2255844fde46cd4e40bc0da7e06e616a64d94b1ef/twitter-photos-0.4.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "22ef81c009a9e3a5321fba52c378a8ec", "sha256": "34986152ecdcfac543b69bcf6722ddb051ae08c5a2cd637089da519532fc8672" }, "downloads": -1, "filename": "twitter-photos-0.4.0.tar.gz", "has_sig": false, "md5_digest": "22ef81c009a9e3a5321fba52c378a8ec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 82997, "upload_time": "2018-03-14T04:14:47", "url": "https://files.pythonhosted.org/packages/b0/d9/40da537d49971c07f5c2255844fde46cd4e40bc0da7e06e616a64d94b1ef/twitter-photos-0.4.0.tar.gz" } ] }