From 41fb4dec6795c03e01e3e701a78a92340fc6d274 Mon Sep 17 00:00:00 2001 From: alex-money Date: Sat, 24 Jun 2017 17:27:58 -0400 Subject: [PATCH 1/3] use https? I noticed that everything is "http://". Shouldn't we use "https://"? To hide our keys from public view? --- embedly/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/embedly/client.py b/embedly/client.py index cfda2df..3aff738 100644 --- a/embedly/client.py +++ b/embedly/client.py @@ -52,7 +52,7 @@ def get_services(self): if self.services: return self.services - url = 'http://api.embed.ly/1/services/python' + url = 'https://api.embed.ly/1/services/python' http = httplib2.Http(timeout=self.timeout) headers = {'User-Agent': self.user_agent, @@ -122,7 +122,7 @@ def _get(self, version, method, url_or_urls, **kwargs): else: query += '&url=%s' % quote(url_or_urls) - url = 'http://api.embed.ly/%s/%s?%s' % (version, method, query) + url = 'https://api.embed.ly/%s/%s?%s' % (version, method, query) http = httplib2.Http(timeout=self.timeout) From a00c965beff040be648d68578f55a3b4fda0f9dd Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Thu, 25 Nov 2021 06:42:00 +1100 Subject: [PATCH 2/3] docs: Fix a few typos There are small typos in: - README.rst - embedly/models.py Fixes: - Should read `arguments` rather than `arguements`. - Should read `accessible` rather than `accsesible`. --- README.rst | 2 +- embedly/models.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 50416c7..f514ce2 100644 --- a/README.rst +++ b/README.rst @@ -97,7 +97,7 @@ The client object now has a bunch of different methods that you can use. >>> client.objectify('http://vimeo.com/18150336') -The above functions all take the same arguements, a URL or a list of URLs and +The above functions all take the same arguments, a URL or a list of URLs and keyword arguments that correspond to Embedly's `query arguments `_. Here is an example:: diff --git a/embedly/models.py b/embedly/models.py index f97591c..e3f7ad8 100644 --- a/embedly/models.py +++ b/embedly/models.py @@ -7,7 +7,7 @@ class Url(IterableUserDict, object): """ A dictionary with two additional attributes for the method and url. UserDict provides a dictionary interface along with the regular - dictionary accsesible via the `data` attribute. + dictionary accessible via the `data` attribute. """ def __init__(self, data=None, method=None, original_url=None, **kwargs): From 6be75a250a255e98f893a5a5f0202b6f449b3368 Mon Sep 17 00:00:00 2001 From: Shane Spencer <305301+whardier@users.noreply.github.com> Date: Thu, 17 Feb 2022 21:19:44 +0000 Subject: [PATCH 3/3] fix tuple/list error to resolve issue with newer setuptools --- embedly/__init__.py | 2 +- setup.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/embedly/__init__.py b/embedly/__init__.py index 5f9c9b4..11f965c 100644 --- a/embedly/__init__.py +++ b/embedly/__init__.py @@ -1,4 +1,4 @@ from __future__ import absolute_import from .client import Embedly -__version__ = '0.5.0' +__version__ = '0.5.0.post0' diff --git a/setup.py b/setup.py index bf63710..e0fef44 100644 --- a/setup.py +++ b/setup.py @@ -43,7 +43,7 @@ def get_version(): test_suite="embedly.tests", zip_safe=True, use_2to3=True, - classifiers=( + classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Natural Language :: English', @@ -54,5 +54,5 @@ def get_version(): 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.2', 'Programming Language :: Python :: 3.3', - ) + ] )