{"id":13502611,"url":"https://github.com/coleifer/micawber","last_synced_at":"2025-05-14T07:10:52.249Z","repository":{"id":2845169,"uuid":"3848869","full_name":"coleifer/micawber","owner":"coleifer","description":"a small library for extracting rich content from urls","archived":false,"fork":false,"pushed_at":"2024-12-06T13:09:53.000Z","size":207,"stargazers_count":649,"open_issues_count":0,"forks_count":89,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-04-21T18:02:49.497Z","etag":null,"topics":["oembed","python"],"latest_commit_sha":null,"homepage":"http://micawber.readthedocs.org/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coleifer.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-03-27T21:42:46.000Z","updated_at":"2025-04-20T03:41:54.000Z","dependencies_parsed_at":"2025-04-07T14:00:51.816Z","dependency_job_id":"d31aa4d1-f912-4846-bc5b-3a9782102bec","html_url":"https://github.com/coleifer/micawber","commit_stats":{"total_commits":175,"total_committers":27,"mean_commits":6.481481481481482,"dds":0.2571428571428571,"last_synced_commit":"7140bf4e55a283602828e119cc19c3657fc824e1"},"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coleifer%2Fmicawber","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coleifer%2Fmicawber/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coleifer%2Fmicawber/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coleifer%2Fmicawber/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coleifer","download_url":"https://codeload.github.com/coleifer/micawber/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254092798,"owners_count":22013292,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["oembed","python"],"created_at":"2024-07-31T22:02:19.578Z","updated_at":"2025-05-14T07:10:47.237Z","avatar_url":"https://github.com/coleifer.png","language":"Python","funding_links":[],"categories":["Web Content Extracting","资源列表","Python","\u003ca id=\"9eee96404f868f372a6cbc6769ccb7f8\"\u003e\u003c/a\u003e工具","Web Scraping \u0026 Crawling","Web内容提取","网络","Web Content Extracting [🔝](#readme)","Awesome Python"],"sub_categories":["网页内容提取","\u003ca id=\"31185b925d5152c7469b963809ceb22d\"\u003e\u003c/a\u003e新添加的","Web Content Extracting"],"readme":".. image:: http://media.charlesleifer.com/blog/photos/micawber-logo-0.png\n\nA small library for extracting rich content from urls.\n\n\nwhat does it do?\n----------------\n\nmicawber supplies a few methods for retrieving rich metadata about a variety of\nlinks, such as links to youtube videos.  micawber also provides functions for\nparsing blocks of text and html and replacing links to videos with rich embedded\ncontent.\n\nexamples\n--------\n\nhere is a quick example:\n\n.. code-block:: python\n\n    import micawber\n\n    # load up rules for some default providers, such as youtube and flickr\n    providers = micawber.bootstrap_basic()\n\n    providers.request('http://www.youtube.com/watch?v=54XHDUOHuzU')\n\n    # returns the following dictionary:\n    {\n        'author_name': 'pascalbrax',\n        'author_url': u'http://www.youtube.com/user/pascalbrax'\n        'height': 344,\n        'html': u'\u003ciframe width=\"459\" height=\"344\" src=\"http://www.youtube.com/embed/54XHDUOHuzU?fs=1\u0026feature=oembed\" frameborder=\"0\" allowfullscreen\u003e\u003c/iframe\u003e',\n        'provider_name': 'YouTube',\n        'provider_url': 'http://www.youtube.com/',\n        'title': 'Future Crew - Second Reality demo - HD',\n        'type': u'video',\n        'thumbnail_height': 360,\n        'thumbnail_url': u'http://i2.ytimg.com/vi/54XHDUOHuzU/hqdefault.jpg',\n        'thumbnail_width': 480,\n        'url': 'http://www.youtube.com/watch?v=54XHDUOHuzU',\n        'width': 459,\n        'version': '1.0',\n    }\n\n    providers.parse_text('this is a test:\\nhttp://www.youtube.com/watch?v=54XHDUOHuzU')\n\n    # returns the following string:\n    this is a test:\n    \u003ciframe width=\"459\" height=\"344\" src=\"http://www.youtube.com/embed/54XHDUOHuzU?fs=1\u0026feature=oembed\" frameborder=\"0\" allowfullscreen\u003e\u003c/iframe\u003e\n\n    providers.parse_html('\u003cp\u003ehttp://www.youtube.com/watch?v=54XHDUOHuzU\u003c/p\u003e')\n\n    # returns the following html:\n    \u003cp\u003e\u003ciframe width=\"459\" height=\"344\" src=\"http://www.youtube.com/embed/54XHDUOHuzU?fs=1\u0026amp;feature=oembed\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"\u003e\u003c/iframe\u003e\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoleifer%2Fmicawber","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoleifer%2Fmicawber","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoleifer%2Fmicawber/lists"}