{ "info": { "author": "Erin Hengel", "author_email": "erin.hengel@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "Requests-AEAweb\n===============\n\nRequests-AEAweb is a custom `Requests `_ class to log onto `AEAweb.org `_, the website of the American Economic Association.\n\n\nInstallation\n------------\n*Curently can only be downloaded from source; available on pip very soon.*\n\t\n.. code-block:: bash\n\n\t$ pip install requests_aeaweb\n\n\nDocumentation\n-------------\n\nDetailed documentation available at `www.erinhengel.com/software/requests-aeaweb `_. \n\n\nQuickstart\n----------\n\nThe ``AEAweb`` class logs onto `AEAweb.org `_ and establishes a connection with the host.\nThe ``session`` attribute returns a\n`Request Session object `_\nwith all the methods of the main `Requests API `_.\n\n\n.. code-block:: python\n\n >>> from requests_aeaweb import AEAweb\n\t\n # Establish AEAweb connection object.\n >>> deets = {'username': 'someuser', 'password': 'XXXX'}\n >>> conn = AEAweb(login=deets)\n\t\n # Use session attribute to access Requests methods.\n >>> url = '{}/articles.php'.format(conn.url)\n >>> payload = {'doi': '10.1257/aer.20130626'}\n >>> request = conn.session.get(url, params=payload)\n >>> request.status_code\n 200\n\t\n # Do stuff with your request object.\n >>> from bs4 import BeautifulSoup\n >>> soup = BeautifulSoup(request.text, 'html.parser')\n >>> soup.title\n 'AEAweb: AER (106,3) p. 525 - University Differences in the Graduation of Minorities in STEM Fields: Evidence from California'\n\n\nThe ``AER`` subclass contains the ``html``, ``pdf`` and ``ref`` methods to download the webpage HTML, PDF and bibliographic\ninformation of articles published in the *American Economic Review*.\n\n.. code-block:: python\n \n >>> from requests_aeaweb import AER\n\t\n # Establish AEAweb connection object via AER.\n >>> conn = AER(login=deets)\n\t\n # Download the HTML of the article with document id 10.1257/aer.20140289.\n >>> doc_id = '10.1257/aer.20140289'\n >>> html = conn.html(id=doc_id)\n\t\n # Download the document PDF.\n >>> pdf = conn.pdf(id=doc_id, file='article.pdf')\n \n # Download the bibliographic information.\n >>> biblio = conn.ref(id=doc_id)\n >>> biblio['Authors']\n [{'Affiliation': 'Johns Hopkins U', 'Name': 'Korinek, Anton'}, {'Affiliation': 'MIT', 'Name': 'Simsek, Alp'}]", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://www.erinhengel.com/software/requests-aeaweb/", "keywords": null, "license": "Apache 2.0", "maintainer": null, "maintainer_email": null, "name": "requests-aeaweb", "package_url": "https://pypi.org/project/requests-aeaweb/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/requests-aeaweb/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://www.erinhengel.com/software/requests-aeaweb/" }, "release_url": "https://pypi.org/project/requests-aeaweb/0.0.1/", "requires_dist": null, "requires_python": null, "summary": "Requests wrapper to log onto AEAweb.org.", "version": "0.0.1" }, "last_serial": 1990148, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "f0720c548c328d2335bdf4f2ef6a1b57", "sha256": "ba4eb805bbb71b6ce826bf23e83a5b56b711f468109262a8f1cf9cb76c25de87" }, "downloads": -1, "filename": "requests-aeaweb-0.0.1.tar.gz", "has_sig": false, "md5_digest": "f0720c548c328d2335bdf4f2ef6a1b57", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4972, "upload_time": "2016-03-04T19:59:52", "url": "https://files.pythonhosted.org/packages/90/99/7194d8b091c1a1cea8060f3936cf347744cc82d0bbc0bdabb4c51c297897/requests-aeaweb-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f0720c548c328d2335bdf4f2ef6a1b57", "sha256": "ba4eb805bbb71b6ce826bf23e83a5b56b711f468109262a8f1cf9cb76c25de87" }, "downloads": -1, "filename": "requests-aeaweb-0.0.1.tar.gz", "has_sig": false, "md5_digest": "f0720c548c328d2335bdf4f2ef6a1b57", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4972, "upload_time": "2016-03-04T19:59:52", "url": "https://files.pythonhosted.org/packages/90/99/7194d8b091c1a1cea8060f3936cf347744cc82d0bbc0bdabb4c51c297897/requests-aeaweb-0.0.1.tar.gz" } ] }