Data¶
Note
The contents of this module are placed here for organisational reasons.
They should be imported from yourls.
-
class
yourls.data.DBStats(total_clicks, total_links)¶ Represent database statistics as returned by the YOURLS API.
-
total_clicks¶ Total number of clicks across all links in the database.
-
total_links¶ Total number of links in the database.
-
-
class
yourls.data.ShortenedURL(shorturl, url, title, date, ip, clicks, keyword=None)¶ Represent shortened URL data as returned by the YOURLS API.
-
keyword¶ Short URL keyword, e.g.
abcdefforhttp://example.com/abcdef.
-
url¶ Long URL that was shortened.
-
title¶ URL page title.
-
ip¶ IP address that originally shortened the URL.
-
clicks¶ Number of clicks the shortened URL has received.
-