- 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

31st Jan 2021, 8:13 AM
Ratnapal Shende
Ratnapal Shende - avatar
8 Antworten
+ 1
The module must be imported after successful installation
31st Jan 2021, 9:47 AM
Nikita Lijv
Nikita Lijv - avatar
+ 1
Slick got it bro I checked the documentation of pyshorteners and it's syntax is diffrnt than toward data science. com Thanks bro !
31st Jan 2021, 12:55 PM
Ratnapal Shende
Ratnapal Shende - avatar
0
works just fine in pydroid, I just had to manually install pyshorteners
31st Jan 2021, 9:27 AM
Slick
Slick - avatar
0
Slick Nikita Lijv sorry guys I posted another code in description 😥 now edited please check it it shows TypeError on line 14
31st Jan 2021, 10:48 AM
Ratnapal Shende
Ratnapal Shende - avatar
0
where did you post this code?
31st Jan 2021, 10:49 AM
Slick
Slick - avatar
0
it's line 14, says it doesnt take parameters
31st Jan 2021, 10:57 AM
Slick
Slick - avatar
- 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
31st Jan 2021, 11:02 AM
Slick
Slick - avatar