![]() shorten_urls ( long_urls ) # Shorten to dict > long_urls = > shortener. Shortener ( tokens = tokens_pool, max_cache_size = 256 ) # Shorten to list > long_urls = > shortener. Usage examples: > import bitlyshortener # Setup > tokens_pool = # Use your own. To install the package, run: $ pip install bitlyshortener PythonĪny older version of Python will not work due to the use of It is unknown what the per-IP rate limit is, if any. It is possible to monitor the usage via the. ![]() If this email is received, it is suggested to immediately obtain and add additional tokens to the pool used by this package.Īs follows, it is preferable to stay under 50% of the usage limit by having a sufficiently big pool of tokens. Per month: 1000 (presumably for status 201 only)īitly sends a monthly email if 50% of the account's usage limit for new short links is exceeded for the calendar month.Per hour: 1000 (presumably for status 200 or 201). ![]() Per minute: 100 (presumably for status 200 or 201).The following were previously the rate limits per token: In Nov 2022, Bitly sent an email advising that the rate limit per token was lowered to 50 per month, effective Dec 8, 2022. Enter password and click Generate Token.Under "Profile Settings", select "Generic Access Token".It can on rare occasions be necessary to have the confirmation email resent. Verify the email address by clicking the link in the confirmation email.On the "Let's keep this short" page, click "Skip to your homepage".This package doesn't include any access token. Other Bitly operations are outside the scope of this package. It requires and uses one or more generic access tokens provided by Bitly which it uses semi-randomly.Īs a disclaimer, this is an unofficial package and it has no association with Bitly.Īs of 2022, the maintenance of this package has been discontinued because Bitly dramatically lowered their free quota per token to just 50 URLs per month. Bitlyshortener is a Python 3.7 based high-volume Bitly V4 URL shortener with a memory-cache.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |