How to get my WhatsApp password? - python

I am writing web service in python to work with WhatsApp. I am using pywhatsapp library for that. But can anyone tell me how to get my WhatsApp password? It is needed for Login using pywhatsapp.
Hours of searching in Google didn't give any result.

You can use the yowsup cli to register a new WhatsApp user. During this process you will get a new password. Just download the cli and follow the instructions under yowsup cli.
You should also be able to reregister your own mobile number if it has already been used with WhatsApp. (e.g. on your phone)

Related

How can i read emails using Graph api without manual intervention for browser login/authorization?

All i wanted to run a python script to read email from office365 using graph-api.
Everywhere i can see that examples with browser interaction for getting the accessToken.
i have tried with these steps in https://dzone.com/articles/getting-access-token-for-microsoft-graph-using-oau . Retrieved the Access token successfully. But when try to access https://graph.microsoft.com/v1.0/me/messages with access token ended up with "code":"BadRequest","message":"/me request is only valid with delegated authentication flow.".
Can someone help me with proper guidance or available examples.

How to retrieve data from Instagram that is absent in their API

I am currently trying write a code to retrieve an Instagram users email. This is not feasible through their API. The manual way to do it is to go on a mobile phone (not feasible from desktop) and if they have a business account there will be an option called Email which will then open Gmail and give you the email. Is there a way for me to run a bot through the Instagram App to retrieve that information and export it back to my computer? Time is not an issue for how quickly the data is retrieved, I could run the code overnight, but I was curious as to how/if this was feasible.
Thank you!

How to create a whatsapp bot?

I would like to create bot in whatsapp. The Idea is here when a user sends a whatsapp message to my phone number that should reply to them.
I have researched twillio since it's like a sandbox twillio uses it own whatsapp number and So when a new user comes the user should send the sandbox number. Then I searched for whatsapp API I don't have any company or anything so there I can't use the official whatsapp API.
Is there some other way of using whatsapp API when I recieve a message it should reply immediately.
Unfortunately, since WhatsApp is only opening its APIs to its trusted/business partners, you can only access it using their services. Some of the examples includes,
Vonage
Infobip
Wati
Twilio as you mentioned
If these are not enough for you, you can always write your own bot in Python using selenium to scrape the web app for WhatsApp and listen to new message by checking the page regularly.

Python and Telethon: how to handle sw distribution

I developed a program to interact between Telegram and other 3rd party Software. It's written in Python and I used the Telethon library.
Everything works fine, but since it uses my personal configuration including API ID, API hash, phone number and username, I would like to know how to handle all of this if I wanted to distribute the software to other people.
Of course they can't use my data, so should they login into Telegram development page and get all the info? Or, is there a more user-friendly way to do it?
Since the API ID and the API Hash in Telegram are supposed to be distributed with your client all you need to do is prompt the user for their Phone Number.
You could do this using a GUI Library (like PySide2 using QInputDialog) or if it is a command line application using input(). Keep in mind that the user will also need a way to enter the code they receive from Telegram and their 2FA Password if set.

How gmail come to know that if user is trying to access it from a browser or from other application?

I've made one program in Python using Web.py to access my gmail account. It gave me following error in beginning "Please log in via your web browser and then try again." Then I went to gmail security settings and enable it for accessing gmail from less secure apps. It started working fine from the program I've developed.
( Security Setting link: https://www.google.com/settings/security/lesssecureapps)
My question is how Gmail comes to know that from where I am trying to access it? Also, if you can share similar scenarios with me where you have to access something via web browser only?
Thanks in advance.
when you access gmail,maybe the http protocol is used,in http protocol header,User-Agent represent our browse and operation system information.Hope this helpful
Is the gmail account a normal account or your own domain? If its ur domain then you need to login and change the outbound relay section in settings.
unlock captcha will help to fix this problem
Another way simple way is if you go to the email after trying to access without browser a yellow notification will tell you that something tried to access your account.Follow steps and you may have whay you want.
Hope it helps!!

Categories

Resources