(27 January, 2021 - 07:41 AM)K4Sp3r Wrote: Show More (26 January, 2021 - 08:19 PM)ume31284 Wrote: Show More
all you right but the fourth point when you write the website for example Instagram, you should write it like ' instagram.com/ ' so it will remove the '/' and printing it in availables.txt, and yes it wont work always some websites wont work but most of them will work you just need the right url.
Oh, okay, so it's better if you put instructions or something.
so you can do:
website = input("Enter website: ")[:-1]
instead of:
web = list(websit)
webs = web[:-1]
webss = ''.join(webs)
This isn't going to work for tiktok, when you send request to tiktok, you have to send it like this:
https://www.tiktok.com/@mariahcarey
but you gonna send
https://www.tiktok.com/mariahcarey
and it will give you status 404
I'm just telling you this because it's your first "tool" , So in the future your code will be more clean and you will check that every feature really work.
1 more thing you should check validation of input.
good luck bro, hope to see more tools in future.