Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/michaelhelmick/lassie
Web Content Retrieval for Humans™
https://github.com/michaelhelmick/lassie
content meta oembed python requests
Last synced: 4 days ago
JSON representation
Web Content Retrieval for Humans™
- Host: GitHub
- URL: https://github.com/michaelhelmick/lassie
- Owner: michaelhelmick
- License: mit
- Created: 2013-07-30T20:41:39.000Z (over 11 years ago)
- Default Branch: main
- Last Pushed: 2022-07-30T23:22:33.000Z (over 2 years ago)
- Last Synced: 2024-11-21T09:04:12.337Z (21 days ago)
- Topics: content, meta, oembed, python, requests
- Language: HTML
- Homepage: https://lassie.readthedocs.org
- Size: 344 KB
- Stars: 614
- Watchers: 22
- Forks: 49
- Open Issues: 12
-
Metadata Files:
- Readme: README.rst
- Changelog: HISTORY.rst
- License: LICENSE
Awesome Lists containing this project
- awesome-python-resources - GitHub - 25% open · ⏱️ 20.08.2021): (网络)
README
Lassie
======.. image:: https://img.shields.io/pypi/v/lassie.svg?style=flat-square
:target: https://pypi.python.org/pypi/lassie.. image:: https://img.shields.io/travis/michaelhelmick/lassie.svg?style=flat-square
:target: https://travis-ci.org/michaelhelmick/lassie.. image:: https://img.shields.io/coveralls/michaelhelmick/lassie/master.svg?style=flat-square
:target: https://coveralls.io/r/michaelhelmick/lassie?branch=master.. image:: https://img.shields.io/badge/Say%20Thanks!-:)-1EAEDB.svg?style=flat-square
:target: https://saythanks.io/to/michaelhelmickLassie is a Python library for retrieving basic content from websites.
.. image:: https://i.imgur.com/QrvNfAX.gif
Usage
-----.. code-block:: python
>>> import lassie
>>> lassie.fetch('http://www.youtube.com/watch?v=dQw4w9WgXcQ')
{
'description': u'Music video by Rick Astley performing Never Gonna Give You Up. YouTube view counts pre-VEVO: 2,573,462 (C) 1987 PWL',
'videos': [{
'src': u'http://www.youtube.com/v/dQw4w9WgXcQ?autohide=1&version=3',
'height': 480,
'type': u'application/x-shockwave-flash',
'width': 640
}, {
'src': u'https://www.youtube.com/embed/dQw4w9WgXcQ',
'height': 480,
'width': 640
}],
'title': u'Rick Astley - Never Gonna Give You Up',
'url': u'http://www.youtube.com/watch?v=dQw4w9WgXcQ',
'keywords': [u'Rick', u'Astley', u'Sony', u'BMG', u'Music', u'UK', u'Pop'],
'images': [{
'src': u'http://i1.ytimg.com/vi/dQw4w9WgXcQ/hqdefault.jpg?feature=og',
'type': u'og:image'
}, {
'src': u'http://i1.ytimg.com/vi/dQw4w9WgXcQ/hqdefault.jpg',
'type': u'twitter:image'
}, {
'src': u'http://s.ytimg.com/yts/img/favicon-vfldLzJxy.ico',
'type': u'favicon'
}, {
'src': u'http://s.ytimg.com/yts/img/favicon_32-vflWoMFGx.png',
'type': u'favicon'
}],
'locale': u'en_US'
}Install
-------Install Lassie via `pip `_
.. code-block:: bash
$ pip install lassie
or, with `easy_install `_
.. code-block:: bash
$ easy_install lassie
But, hey... `that's up to you `_.
Documentation
-------------Documentation can be found here: https://lassie.readthedocs.org/