{ "info": { "author": "Mark Wilson", "author_email": "mark@warkmilson.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: End Users/Desktop", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7" ], "description": "everytrail\\_export\n==================\n\nA Python script which scrapes EveryTrail trip pages for trip stories,\nphotos, and GPS data. Intended for the export of one's own trips.\n\nSee `this blog\npost `__\nfor the motivation behind this tool.\n\nInstallation\n------------\n\nInstall using ``pip``:\n\n::\n\n pip install everytrail_export\n\nIf this fails because of permissions, try\n``pip install everytrail_export --user``.\n\nIf this fails because pip is not installed, follow these instructions:\nhttps://pip.pypa.io/en/latest/installing.html\n\nUsage\n-----\n\nInstalling with pip makes an executable called ``everytrail_export``\navailable from the command line. Invoking the script with no arguments\ngives usage instructions:\n\n::\n\n everytrail_export\n\nIf this fails, make sure that your system ``$PATH`` includes the\nlocation where executable scripts from Python packages are installed.\n(For example, if you installed with the ``--user`` option on OSX,\npackage scripts are installed to ``~/Library/Python/2.7/bin``.)\n\nThe --trailauth option\n~~~~~~~~~~~~~~~~~~~~~~\n\n**Downloading GPX/KML data from EveryTrail requires being logged in.**\nThis means you need to pass the login cookie from your web browser so\nthat the script can act as a logged-in user.\n\nFirst, log into EveryTrail on your browser, which will set a cookie\nindicating to EveryTrail you are logged in. Then find the value of the\n``TRAILAUTH`` cookie, which will be a long string of letters and numbers\nthat looks like like\n``bce2a5ef9d3fd800e84f438f7237fe40dec5f1bd94cf67075ad17540ce956eed``.\nFinding this cookie can be done in at least two ways:\n\n1. Follow the instructions on this WikiHow page to view your browser's\n cookies: http://www.wikihow.com/View-Cookies\n\n2. While on an EveryTrail page, open your browser's web developer\n console (usually under the Tools menu) and type ``document.cookie``.\n Look for the ``TRAILAUTH`` value.\n\nYou can then pass the script that value using the ``--trailauth``\noption.\n\nThe --trips-page option\n~~~~~~~~~~~~~~~~~~~~~~~\n\nIf you use the ``--trips-page`` option to provide the URL for your trip\nlisting page, then that list will scraped for individual trips to\ndownload. That way, you don't have to pass the trips one at a time to\nthe script.\n\n**To find your trips page,** make sure you are logged into EveryTrail,\nthen hover your mouse over \"My EveryTrail\" in the menu at the top of the\npage, until you see the dropdown menu appear. Click \"My Trips\" in the\ndropdown menu. Copy the URL in the address bar of your browser.\n\nPutting it all together\n~~~~~~~~~~~~~~~~~~~~~~~\n\nRunning the script with the ``--trailauth`` and ``--trips-page`` options\nwill find all the trips listed at that URL, and then download the trips\none by one:\n\n::\n\n $ everytrail_export --trailauth d9b61ab30a10... \\\n --trips-page http://www.everytrail.com/my_trips.php?user_id=154142\n Scraping http://www.everytrail.com/my_trips.php?user_id=154142 for trip URLs...\n Found links to 15 trips: 1550019 1673357 1693258 1733157 1741278 1820769 1924844 1924847 2022884 2053816 2108623 2301920 2348794 2671553 2991898\n Trip 1/15:\n Downloading http://www.everytrail.com/view_trip.php?trip_id=1550019\n El Corte de Madera Creek Trail - California, United States\n Saved trails/1550019-el-corte-de-madera-creek-trail/title.txt\n Saved trails/1550019-el-corte-de-madera-creek-trail/info.html\n Saved trails/1550019-el-corte-de-madera-creek-trail/stats.html\n Saving GPX and KML files...\n Downloading http://www.everytrail.com/downloadGPX.php?trip_id=1550019\n Saved trails/1550019-el-corte-de-madera-creek-trail/1550019.gpx\n Downloading http://www.everytrail.com/downloadKML.php?trip_id=1550019\n Saved trails/1550019-el-corte-de-madera-creek-trail/1550019.kmz\n Downloading photos page: http://www.everytrail.com/trip_pictures.php?trip_id=1550019&code=\n Photo 1/13:\n Downloading photo info page: http://www.everytrail.com/view_picture.php?trip_id=1550019&picture_id=4326030\n Finding full photo: http://www.everytrail.com/picture/vieworiginal?picture_id=4336030\n Downloading full photo: http://images.everytrail.com/pics/original/4336030-IMG_8018.jpg\n Saved \"IMG_8018\" to trails/1550019-el-corte-de-madera-creek-trail/images/4336030-IMG_8018.jpg\n ...\n Saved trails/1550019-el-corte-de-madera-creek-trail/photo_info.json\n Trip 2/15:\n ...\n\nIf you have so many trips that they span multiple listing pages (your\ntrips page has a \"Next\" link at the bottom), then you will need to run\nthe script for each listing page.\n\nDownloading individual trips\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nAn alternative way to call the script is to download only a specific\ntrip or trips. In that case, you can specify them as arguments:\n\n::\n\n $ everytrail_export --trailauth d9b61ab30a10... \\\n http://www.everytrail.com/view_trip.php?trip_id=2671553 \\\n http://www.everytrail.com/view_trip.php?trip_id=2991898 \\\n http://www.everytrail.com/view_trip.php?trip_id=2348794\n\n--skip-photos\n~~~~~~~~~~~~~\n\nIf you have lots of photos but want to download only trip stories and\nGPS data, the ``--skip-photos`` option will make the download much\nfaster.\n\n--max-retries\n~~~~~~~~~~~~~\n\nBy default, the script will retry a failed request 5 times. If\nEveryTrail is being especially flaky, you can specify a higher value\nwith the ``--max-retries`` option.\n\nContact\n-------\n\nIf you have any questions, or run into trouble running this script,\nplease email me at mark@warkmilson.com.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mddub/everytrail_export", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "everytrail_export", "package_url": "https://pypi.org/project/everytrail_export/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/everytrail_export/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/mddub/everytrail_export" }, "release_url": "https://pypi.org/project/everytrail_export/0.2.3/", "requires_dist": null, "requires_python": null, "summary": "scraper for downloading trips from EveryTrail, including GPS data, story, and photos.", "version": "0.2.3" }, "last_serial": 2563613, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "c3e30e5cffba2a3c577d04f085f32013", "sha256": "7c12d59043ea7fd15e85b045b38ae95aeb13871e9a8fb63398547cbc876be248" }, "downloads": -1, "filename": "everytrail_export-0.1.0.tar.gz", "has_sig": false, "md5_digest": "c3e30e5cffba2a3c577d04f085f32013", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6829, "upload_time": "2015-03-24T04:44:34", "url": "https://files.pythonhosted.org/packages/9f/c7/c2d8db13c43d53825fe58622f197a29be34b7c78bbe082c74e5b2b1fdba3/everytrail_export-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "built for Darwin-14.0.0", "digests": { "md5": "a5a958f620d96028054cd1222a15f61b", "sha256": "fb395e392969fc58a813f0f2dab8602cfb6983b814d59ce2772ba21ae93f870c" }, "downloads": -1, "filename": "everytrail_export-0.1.1.macosx-10.10-intel.tar.gz", "has_sig": false, "md5_digest": "a5a958f620d96028054cd1222a15f61b", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 10859, "upload_time": "2015-03-24T05:04:35", "url": "https://files.pythonhosted.org/packages/b1/95/d3db60debc49ac36e314d2bde4e9397ea81a30c7ecd79f9318be0dcbe773/everytrail_export-0.1.1.macosx-10.10-intel.tar.gz" }, { "comment_text": "", "digests": { "md5": "0bff5e090c08b77f7cbb8362759b0479", "sha256": "a51e02acf3de17488b23b6dc87d5d3ef25c61211da910c6c96f98be6cb637f7b" }, "downloads": -1, "filename": "everytrail_export-0.1.1.tar.gz", "has_sig": false, "md5_digest": "0bff5e090c08b77f7cbb8362759b0479", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6858, "upload_time": "2015-03-24T05:05:01", "url": "https://files.pythonhosted.org/packages/cb/7e/b4c2f34c19de3e0dd64b67996ddb03427506e65a5a812274c14b3cac920e/everytrail_export-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "f6056ed4e27bc357b63fc326169cdf4c", "sha256": "26f7a2d090938f37d4646185b18a4345c7e1922aca8ead8884f3cabe2e6844ed" }, "downloads": -1, "filename": "everytrail_export-0.1.2.tar.gz", "has_sig": false, "md5_digest": "f6056ed4e27bc357b63fc326169cdf4c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6845, "upload_time": "2015-03-24T05:13:42", "url": "https://files.pythonhosted.org/packages/72/2c/5b1157e2294f5500e0d55c8439d8073a77f800e245e24d9fcfb8ef5bd20a/everytrail_export-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "ada0ed271bff24ff3e9c83114ad71936", "sha256": "cceb79025130860ed2793df79dba6f21e0fb390acd81bce7e4051568673d5d04" }, "downloads": -1, "filename": "everytrail_export-0.1.3.tar.gz", "has_sig": false, "md5_digest": "ada0ed271bff24ff3e9c83114ad71936", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6860, "upload_time": "2015-03-24T07:21:49", "url": "https://files.pythonhosted.org/packages/ef/28/bed1576a0c3a8c4dace9f1796a8a4ef1ae709c91c5e1e425b085523436b5/everytrail_export-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "dcff93f8137210ff78229b493d45b09c", "sha256": "21b86b5ae9ca33f983446056432703ddc15f8f6c10dcd659b36aa83e808fceba" }, "downloads": -1, "filename": "everytrail_export-0.1.4.tar.gz", "has_sig": false, "md5_digest": "dcff93f8137210ff78229b493d45b09c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6859, "upload_time": "2015-03-27T17:21:33", "url": "https://files.pythonhosted.org/packages/9e/48/3929353a659ed9dcb13cfedd50574d7d929c6182946472718d4760fc29c7/everytrail_export-0.1.4.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "1a011e5fbe2c2c6066122fef3619f2f3", "sha256": "767493ec94e3d6545e67db5ad24f482b0dcd2317462cd963de220e7a9327a026" }, "downloads": -1, "filename": "everytrail_export-0.2.0.tar.gz", "has_sig": false, "md5_digest": "1a011e5fbe2c2c6066122fef3619f2f3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7131, "upload_time": "2015-07-01T03:00:29", "url": "https://files.pythonhosted.org/packages/2c/68/491fd236fb846f06d21f13ce3a2f3ee1f9298958cdd3e0e618ac3636f5f0/everytrail_export-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "built for Darwin-14.0.0", "digests": { "md5": "45b68f97af63e63cacfeaa1fb6189ce5", "sha256": "14efa4f7919ad56c6de22e6b65c7d35e47743f7e1829a2f8addda8beb5546009" }, "downloads": -1, "filename": "everytrail_export-0.2.1.macosx-10.10-intel.tar.gz", "has_sig": false, "md5_digest": "45b68f97af63e63cacfeaa1fb6189ce5", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 11419, "upload_time": "2015-07-01T03:06:41", "url": "https://files.pythonhosted.org/packages/c6/44/2144d39c592675e603edc10a37484a5a99cf1dc92e8279e23a53ed855d05/everytrail_export-0.2.1.macosx-10.10-intel.tar.gz" }, { "comment_text": "", "digests": { "md5": "6607ddbd3b3a21ae0a4f642d74e35c5a", "sha256": "5b180b71a2b5705dd6e3ae8f584860e73371f9247598d8f8703a91980cf75d7a" }, "downloads": -1, "filename": "everytrail_export-0.2.1.tar.gz", "has_sig": false, "md5_digest": "6607ddbd3b3a21ae0a4f642d74e35c5a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7207, "upload_time": "2015-07-01T03:04:02", "url": "https://files.pythonhosted.org/packages/fd/60/c2d36c8a9edb76010d944b6b25db24882b8a9af2f58c3073805768e99c56/everytrail_export-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "built for Darwin-14.0.0", "digests": { "md5": "917deebb23cf60089dd2a2171624772e", "sha256": "4f445d5efc17d6fc5c91897884103b8c21a9134cdb62e38e50cec2307552d879" }, "downloads": -1, "filename": "everytrail_export-0.2.2.macosx-10.10-intel.tar.gz", "has_sig": false, "md5_digest": "917deebb23cf60089dd2a2171624772e", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 11443, "upload_time": "2015-07-28T18:15:19", "url": "https://files.pythonhosted.org/packages/c4/a4/da3cd6f2123183cecea25a734557a171be7969c5f9dca60a2776532814e9/everytrail_export-0.2.2.macosx-10.10-intel.tar.gz" }, { "comment_text": "", "digests": { "md5": "c08b1b952a1baa3d798f10dbf8bb1a12", "sha256": "e0554d314c8560837f930779c37c4aa3f7047c16af377ccffca1d543f1e1e435" }, "downloads": -1, "filename": "everytrail_export-0.2.2.tar.gz", "has_sig": false, "md5_digest": "c08b1b952a1baa3d798f10dbf8bb1a12", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7215, "upload_time": "2015-07-28T18:15:15", "url": "https://files.pythonhosted.org/packages/a6/73/227e9b63429e5c899fc23ab12f0d61edac6cc4a78a037e7c49590b7a2dd9/everytrail_export-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "59fe516425fbd1793add550656637cc2", "sha256": "9fe07d9e0f13bd27c0a4a6f2871ca65c3b981f24df7698979b154175fe70ea3b" }, "downloads": -1, "filename": "everytrail_export-0.2.3.tar.gz", "has_sig": false, "md5_digest": "59fe516425fbd1793add550656637cc2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7212, "upload_time": "2017-01-10T02:23:13", "url": "https://files.pythonhosted.org/packages/e4/e5/612631bb8e33654c74d4823bdf1d98d8d65f58c5f5b61f61af37df7f3bcc/everytrail_export-0.2.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "59fe516425fbd1793add550656637cc2", "sha256": "9fe07d9e0f13bd27c0a4a6f2871ca65c3b981f24df7698979b154175fe70ea3b" }, "downloads": -1, "filename": "everytrail_export-0.2.3.tar.gz", "has_sig": false, "md5_digest": "59fe516425fbd1793add550656637cc2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7212, "upload_time": "2017-01-10T02:23:13", "url": "https://files.pythonhosted.org/packages/e4/e5/612631bb8e33654c74d4823bdf1d98d8d65f58c5f5b61f61af37df7f3bcc/everytrail_export-0.2.3.tar.gz" } ] }