- 1
why error here?
it shows TypeError on line 14 why? help menu : class Shortener(builtins.object) | Shortener(**kwargs) | | Base Factory class to create shoreteners instances | | >>> s = Shortener(**kwargs) | >>> instance = s.shortener_name | >>> instance.short(long_url) https://code.sololearn.com/c9COGnRdv8O5/?ref=app
8 Antworten
+ 1
The module must be imported after successful installation
+ 1
Slick got it bro
I checked the documentation of pyshorteners and it's syntax is diffrnt than toward data science. com
Thanks bro !
0
works just fine in pydroid, I just had to manually install pyshorteners
0
Slick Nikita Lijv
sorry guys I posted another code in description 😥
now edited please check it
it shows TypeError on line 14
0
where did you post this code?
0
it's line 14, says it doesnt take parameters
0
https://towardsdatascience.com/best-apis-for-url-shortening-using-JUMP_LINK__&&__python__&&__JUMP_LINK-2db09d1f86f0
Slick see here bro
same syntax i used...
- 1
Nah, you straight up need to give that acces code to bitly before you even try to shorten a url. Look at the first bit of code on that page, it has the code messing with a bitly api