{ "info": { "author": "Jaewoong", "author_email": "jaewoong.go@gmail.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "You can create preview card(social card) very simple and easily. With Django? Fantastic! \n\n# preview-card\n\nAnyone can obtain data(url, image, title, description, etc) easily from plain text for showing preview card like Twitter, Facebook newsfeed.\n\n# Installing\n~~~\npip install preview-card\n~~~\n\n# Quick Start\n~~~\nfrom preview_card import cardview, MediaSourceType\n\n\nresult = cardview.get_data(plain_Text)\n~~~\n\n# Example\n\n## CASE 1 - *if article url included*\n\n**CODE:**\n\n~~~\nfrom preview_card import cardview, MediaSourceType\n\n# Any Text you want including URL \nplain_text = \"Hi, I read some article below. How do you think? https://www.nytimes.com/2019/09/17/technology/personaltech/iphone-11-review.html Is it cool or not?\"\n\nresult = cardview.get_data(plain_Text)\n~~~\n\n**RESULT:**\n\n~~~\nms_type MediaSourceType.ARTICLE\nurl https://www.nytimes.com/2019/09/17/technology/personaltech/iphone-11-review.html\nimage_url https://static01.nyt.com/images/2019/09/17/business/17techfix2/17techfix2-facebookJumbo.jpg\ntitle IPhone 11 and 11 Pro Review: Thinking Differently in the Golden Age of Smartphones\ndesc This is not your typical gadget review. That\u2019s because it is time to rethink when to upgrade your iPhone.\nerror \n~~~\n\n---\n\n\n## CASE 2 - *if youtube url included*\n\n**CODE**\n\n~~~\nfrom preview_card import cardview, MediaSourceType\n\n# Any Text you want including URL \nplain_text = \"Hi, I watch some video below. How do you think? https://www.youtube.com/watch?v=Jzz4AEIddzY Is it cool or not?\"\n\nresult = cardview.get_data(plain_Text)\n~~~\n\n**RESULT**\n\n~~~\nms_type MediaSourceType.YOUTUBE\nurl https://www.youtube.com/embed/Jzz4AEIddzY\nimage_url \ntitle \ndesc \nerror \n~~~\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/jwkcp/django-preview-card/#files", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jwkcp/django-preview-card", "keywords": "django,cardview,newsfeed", "license": "", "maintainer": "", "maintainer_email": "", "name": "preview-card", "package_url": "https://pypi.org/project/preview-card/", "platform": "", "project_url": "https://pypi.org/project/preview-card/", "project_urls": { "Download": "https://github.com/jwkcp/django-preview-card/#files", "Homepage": "https://github.com/jwkcp/django-preview-card" }, "release_url": "https://pypi.org/project/preview-card/1.0.0/", "requires_dist": [ "beautifulsoup4", "requests" ], "requires_python": ">=3", "summary": "Anyone can obtain data(url, image, title, description, etc) easily from plain text for showing preview card like Twitter, Facebook newsfeed", "version": "1.0.0" }, "last_serial": 5847793, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "d4a20bd64c4ac058d8b886e4f0809f25", "sha256": "17ebe232ee3cb059bffabab1f4c0d5baa46972dccab1e93040ab506d172e5842" }, "downloads": -1, "filename": "preview_card-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "d4a20bd64c4ac058d8b886e4f0809f25", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 4751, "upload_time": "2019-09-18T05:09:35", "url": "https://files.pythonhosted.org/packages/98/a6/63b77f85b60f2d1776df11b709f369a35ae9127a60fd3a6bb24691a0cabc/preview_card-1.0.0-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d4a20bd64c4ac058d8b886e4f0809f25", "sha256": "17ebe232ee3cb059bffabab1f4c0d5baa46972dccab1e93040ab506d172e5842" }, "downloads": -1, "filename": "preview_card-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "d4a20bd64c4ac058d8b886e4f0809f25", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 4751, "upload_time": "2019-09-18T05:09:35", "url": "https://files.pythonhosted.org/packages/98/a6/63b77f85b60f2d1776df11b709f369a35ae9127a60fd3a6bb24691a0cabc/preview_card-1.0.0-py3-none-any.whl" } ] }