{ "info": { "author": "Manuel David Pandian", "author_email": "manueldavidpandian@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License" ], "description": "gnp (Google News Parser)\n=========================\n\n\ngnp (Google News Parser) is a simple python module to parse news articles from google news website\nIt offers output in json format for all available editions, along with location overloading.\nAlso, it offers search results of news article for user supplied text.\n\nBasic Usage:\n\n::: Get news for Google News Indian Edition\n>>> import gnp\n>>> a = gnp.get_google_news(gnp.EDITION_ENGLISH_INDIA)\n\n::: Get news for Google News US Version as if browsing from London,UK\n>>> import gnp\n>>> b = gnp.get_google_news(gnp.EDITION_ENGLISH_US,geo='London,UK')\n\n::: Get news for search Query \"What's happening on earth\".\n Default you get results for 'Barack Obama'\n>>> import gnp\n>>> c = gnp.get_google_news_query(\"What's happening on earth\")\n\n::: Method to write to flatfile\n\n>>> import gnp\n>>> d = gnp.get_google_news(gnp.EDITION_ENGLISH_INDIA)\n\n>>> import codecs\n>>> import json\n\n>>> j = json.dumps(d, indent=4, ensure_ascii=False )\n>>> f = codecs.open( 'news.json', 'w', encoding='utf-8')\n>>> f.write(j.decode('utf-8'))\n>>> f.close()\n\nList of Editions Available::\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n+------------------------------+--------------------------------+\n| Edition Name | Region |\n+------------------------------+--------------------------------+\n| EDITION_SPANISH_ARGENTINA | Argentina |\n| EDITION_ENGLISH_AUSTRALIA | Australia |\n| EDITION_DUTCH_BELGIUM | Belgi\u00eb |\n| EDITION_FRENCH_BELGIUM | Belgique |\n| EDITION_ENGLISH_BOTSWANA | Botswana |\n| EDITION_PORTUGESE_BRAZIL | Brasil |\n| EDITION_ENGLISH_CANADA | Canada English |\n| EDITION_FRENCH_CANADA | Canada Fran\u00e7ais |\n| EDITION_CZECH_CZECH_REPUBLIC | \u010cesk\u00e1 republika |\n| EDITION_SPANISH_CHILE | Chile |\n| EDITION_SPANISH_COLUMBIA | Colombia |\n| EDITION_SPANISH_CUBA | Cuba |\n| EDITION_DEUTSCH_DEUTSCHLAND | Deutschland |\n| EDITION_SPANISH_SPAIN | Espa\u00f1a |\n| EDITION_SPANISH_US | Estados Unidos |\n| EDITION_ENGLISH_ETHIOPIA | Ethiopia |\n| EDITION_FRENCH_FRANCE | France |\n| EDITION_ENGLISH_GHANA | Ghana |\n| EDITION_ENGLISH_INDIA | India |\n| EDITION_ENGLISH_IRELAND | Ireland |\n| EDITION_ENGLISH_ISREAL | Israel English |\n| EDITION_ITALIAN_ITALY | Italia |\n| EDITION_ENGLISH_KENYA | Kenya |\n| EDITION_HUNGARIAN_HUNGARY | Magyarorsz\u00e1g |\n| EDITION_ENGLISH_MALAYSIA | Malaysia |\n| EDITION_FRENCH_MORACCO | Maroc |\n| EDITION_SPANISH_MEXICO | M\u00e9xico |\n| EDITION_ENGLISH_NAMIBIA | Namibia |\n| EDITION_DUTCH_NEDERLAND | Nederland |\n| EDITION_ENGLISH_NEW_ZEALAND | New Zealand |\n| EDITION_ENGLISH_NIGERIA | Nigeria |\n| EDITION_NORSK_NORWAY | Norge |\n| EDITION_DEUTSCH_AUSTRIA | \u00d6sterreich |\n| EDITION_ENGLISH_PAKISTAN | Pakistan |\n| EDITION_SPANISH_PERU | Per\u00fa |\n| EDITION_ENGLISH_PHILIPPINES | Philippines |\n| EDITION_POLISH_POLAND | Polska |\n| EDITION_PORTUGUESE_PORTUGAL | Portugal |\n| EDITION_GERMAN_SWITZERLAND | Schweiz |\n| EDITION_FRENCH_SENEGAL | S\u00e9n\u00e9gal |\n| EDITION_ENGLISH_SINGAPORE | Singapore |\n| EDITION_ENGLISH_SOUTH_AFRICA | South Africa |\n| EDITION_FRENCH_SWITZERLAND | Suisse |\n| EDITION_SWEDISH_SWEDEN | Sverige |\n| EDITION_ENGLISH_TANZANIA | Tanzania |\n| EDITION_TURKISH_TURKEY | T\u00fcrkiye |\n| EDITION_ENGLISH_UK | U.K. |\n| EDITION_ENGLISH_US | U.S. |\n| EDITION_ENGLISH_UGANDA | Uganda |\n| EDITION_SPANISH_VENEZUELA | Venezuela |\n| EDITION_VIETNAMESE_VIETNAM | Vi\u1ec7t Nam (Vietnam) |\n| EDITION_ENGLISH_ZIMBABWE | Zimbabwe |\n| EDITION_GREEK_GREECE | \u0395\u03bb\u03bb\u03ac\u03b4\u03b1 (Greece) |\n| EDITION_RUSSIAN_RUSSIA | \u0420\u043e\u0441\u0441\u0438\u044f (Russia) |\n| EDITION_SERBIAN_SERBIA | \u0421\u0440\u0431\u0438\u0458\u0430 (Serbia) |\n| EDITION_RUSSIAN_UKRAINE | \u0423\u043a\u0440\u0430\u0438\u043d\u0430 / \u0440\u0443\u0441\u0441\u043a\u0438\u0439 (Ukraine) |\n| EDITION_UKRAINIAN_UKRAINE | \u0423\u043a\u0440\u0430\u0457\u043d\u0430 / \u0443\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430 (Ukraine) |\n| EDITION_HEBREW_ISRAEL | \u05d9\u05e9\u05e8\u05d0\u05dc (Israel) |\n| EDITION_ARABIC_UAE | \u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062a (UAE) |\n| EDITION_ARABIC_SAUDI_ARABIA | \u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629 (KSA) |\n| EDITION_ARABIC_ARAB_WORLD | \u0627\u0644\u0639\u0627\u0644\u0645 \u0627\u0644\u0639\u0631\u0628\u064a (Arabic) |\n| EDITION_ARABIC_LEBANON | \u0644\u0628\u0646\u0627\u0646 (Lebanon) |\n| EDITION_ARABIC_EGYPT | \u0645\u0635\u0631 (Egypt) |\n| EDITION_HINDI_INDIA | \u0939\u093f\u0928\u094d\u0926\u0940 (India) |\n| EDITION_TAMIL_INDIA | \u0ba4\u0bae\u0bbf\u0bb4\u0bcd (India) |\n| EDITION_TELUGU_INDIA | \u0c24\u0c46\u0c32\u0c41\u0c17\u0c41 (India) |\n| EDITION_MALAYALAM_INDIA | \u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02 (India) |\n| EDITION_KOREAN_SOUTH_KOREA | \ud55c\uad6d (Korea) |\n| EDITION_CHINESE_CHINA | \u4e2d\u56fd (China) |\n| EDITION_CHINESE_TAIWAN | \u53f0\u7063 (Taiwan) |\n| EDITION_JAPANESE_JAPAN | \u65e5\u672c (Japan) |\n| EDITION_JAPANESE_HONG_KONG | \u9999\u6e2f (Hong Kong) |\n+------------------------------+--------------------------------+\n\nCopyright (c) 2014, Manuel David Pandian\nLicense : MIT (see LICENSE for details)", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://mpand.github.io/gnp/", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "gnp", "package_url": "https://pypi.org/project/gnp/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/gnp/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://mpand.github.io/gnp/" }, "release_url": "https://pypi.org/project/gnp/0.0.4/", "requires_dist": null, "requires_python": null, "summary": "Google News Parser", "version": "0.0.4" }, "last_serial": 1123967, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "275203adba93392b23ee64743ca51377", "sha256": "b8d4a901d24ca3993545bef34c7d80295c23231f0309f1eef5d17e1188acc62e" }, "downloads": -1, "filename": "gnp-0.0.1.tar.gz", "has_sig": false, "md5_digest": "275203adba93392b23ee64743ca51377", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5545, "upload_time": "2014-06-11T19:07:08", "url": "https://files.pythonhosted.org/packages/d1/ee/be371b22c4ac68fa36adafcffbcb5f0a42d240c2ccc937fe4e5ad33aa746/gnp-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "4869065e46517f89d0466eb4864e1b79", "sha256": "b4f609029b592e73fcfa37cae173e1eb6e1faa0db46954b85cf516a107e56df7" }, "downloads": -1, "filename": "gnp-0.0.2.tar.gz", "has_sig": false, "md5_digest": "4869065e46517f89d0466eb4864e1b79", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5948, "upload_time": "2014-06-12T15:13:11", "url": "https://files.pythonhosted.org/packages/00/9c/52f5f1b3795172b5d2d482721ab92e07469b91c726ab3ea08d7811f3b10a/gnp-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "06b5ea65535f689746ad14d4ca5edc3b", "sha256": "0af3866b65a35ccb3b741f37ad786a702a81ed085714a66322ef707b443a3359" }, "downloads": -1, "filename": "gnp-0.0.3.tar.gz", "has_sig": false, "md5_digest": "06b5ea65535f689746ad14d4ca5edc3b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5947, "upload_time": "2014-06-12T17:58:23", "url": "https://files.pythonhosted.org/packages/03/74/48b507ca30b1685c043d0a390e15c5f20f48f7f87996b8fe35c5050c27b0/gnp-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "002cf1b29f8609d1a7763e998e9727e6", "sha256": "7583a64a3ef38af54e188fbff135c459899db64e2d612becd27c1b5311c9f181" }, "downloads": -1, "filename": "gnp-0.0.4.tar.gz", "has_sig": false, "md5_digest": "002cf1b29f8609d1a7763e998e9727e6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5950, "upload_time": "2014-06-13T14:18:17", "url": "https://files.pythonhosted.org/packages/41/40/ad3d5e9462b97435f6513435a0ad07aa40fae71d277270d6f278635ad7e6/gnp-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "002cf1b29f8609d1a7763e998e9727e6", "sha256": "7583a64a3ef38af54e188fbff135c459899db64e2d612becd27c1b5311c9f181" }, "downloads": -1, "filename": "gnp-0.0.4.tar.gz", "has_sig": false, "md5_digest": "002cf1b29f8609d1a7763e998e9727e6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5950, "upload_time": "2014-06-13T14:18:17", "url": "https://files.pythonhosted.org/packages/41/40/ad3d5e9462b97435f6513435a0ad07aa40fae71d277270d6f278635ad7e6/gnp-0.0.4.tar.gz" } ] }