diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2015-05-02 14:58:32 -0400 |
|---|---|---|
| committer | Adam Tauber <asciimoo@gmail.com> | 2015-05-02 14:58:32 -0400 |
| commit | 93fd1e4c76b2eb3d219a8b146ae9e36b103ae5cf (patch) | |
| tree | af2c5d2f48c4f11a79560f0f9f884209ad580617 /searx/engines/bing_images.py | |
| parent | 81850dd603631b7e4b0d3b22d85e9eb3ae5b1e58 (diff) | |
| parent | 4689fe341ca7c7231d0409526b9ee0f2eadde445 (diff) | |
Merge pull request #308 from dalf/versions_upgrade
update versions.cfg to use the current up-to-date packages
Diffstat (limited to 'searx/engines/bing_images.py')
| -rw-r--r-- | searx/engines/bing_images.py | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/searx/engines/bing_images.py b/searx/engines/bing_images.py index d4e3d2b2b..b06a57edc 100644 --- a/searx/engines/bing_images.py +++ b/searx/engines/bing_images.py @@ -1,17 +1,19 @@ -## Bing (Images) -# -# @website https://www.bing.com/images -# @provide-api yes (http://datamarket.azure.com/dataset/bing/search), -# max. 5000 query/month -# -# @using-api no (because of query limit) -# @results HTML (using search portal) -# @stable no (HTML can change) -# @parse url, title, img_src -# -# @todo currently there are up to 35 images receive per page, -# because bing does not parse count=10. -# limited response to 10 images +""" + Bing (Images) + + @website https://www.bing.com/images + @provide-api yes (http://datamarket.azure.com/dataset/bing/search), + max. 5000 query/month + + @using-api no (because of query limit) + @results HTML (using search portal) + @stable no (HTML can change) + @parse url, title, img_src + + @todo currently there are up to 35 images receive per page, + because bing does not parse count=10. + limited response to 10 images +""" from urllib import urlencode from lxml import html @@ -76,7 +78,7 @@ def response(resp): title = link.attrib.get('t1') ihk = link.attrib.get('ihk') - #url = 'http://' + link.attrib.get('t3') + # url = 'http://' + link.attrib.get('t3') url = yaml_data.get('surl') img_src = yaml_data.get('imgurl') |