Skip to content

Commit c5e0137

Browse files
authored
Merge pull request #57 from twingly/remove-developer.twingly.com
Link to our new API documentation
2 parents 4f1ef5a + 1d442ec commit c5e0137

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![GitHub Build Status](https://github.com/twingly/twingly-search-api-python/workflows/CI/badge.svg?branch=master)](https://github.com/twingly/twingly-search-api-python/actions)
44

5-
A Python library for Twingly's Search API (previously known as Analytics API). Twingly is a blog search service that provides a searchable API known as [Twingly Search API](https://developer.twingly.com/resources/search/).
5+
A Python library for Twingly's Search API (previously known as Analytics API). Twingly is a blog search service that provides a searchable API known as [Twingly Search API][Twingly Search API documentation].
66

77
## Installation
88

@@ -45,7 +45,9 @@ Example code can be found in [examples/](examples/).
4545

4646
The `twingly_search` library talks to a commercial blog search API and requires an API key. Best practice is to set the `TWINGLY_SEARCH_KEY` environment variable to the obtained key. `twingly_search.Client` can be passed a key at initialization if your setup does not allow environment variables.
4747

48-
To learn more about the capabilities of the API, please read the [Twingly Search API documentation](https://developer.twingly.com/resources/search/).
48+
To learn more about the capabilities of the API, please read the [Twingly Search API documentation].
49+
50+
[Twingly Search API documentation]: https://app.twingly.com/blog_search?tab=documentation
4951

5052
### Documentation
5153

examples/search_using_local_timezone.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def __init__(self):
3333
self.client = twingly_search.Client()
3434

3535
def start(self):
36-
# See https://developer.twingly.com/resources/search-language/
36+
# See https://app.twingly.com/blog_search?tab=documentation
3737
q = self.client.query()
3838
q.search_query = raw_input("What do you want to search for? ")
3939
q.start_time = self._read_time_from_stdin("Start time")

twingly_search/post.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ class Post(object):
2828
blog_url (string) the blog URL
2929
blog_name (string) name of the blog
3030
blog_rank (int) the rank of the blog, based on authority and language
31-
(https://developer.twingly.com/resources/search/#authority)
31+
(https://app.twingly.com/blog_search?tab=documentation)
3232
blog_id (string) the ID of the blog
3333
authority (int) the blog's authority/influence
34-
(https://developer.twingly.com/resources/search/#authority)
34+
(https://app.twingly.com/blog_search?tab=documentation)
3535
tags (list of string) tags
3636
id (string) the post ID
3737
location_code (string) ISO two letter location code
38-
(https://developer.twingly.com/resources/search-language/#supported-locations)
38+
(https://app.twingly.com/blog_search?tab=documentation)
3939
inlinks_count (int) amount of the inlinks
4040
reindexed_at (datetime.datetime) the time, in UTC, when this post was re-indexed by Twingly
4141
links (list of string) links

0 commit comments

Comments
 (0)