Django Gmail Api- Download Feature - python

I need help in one of my project, I am creating a django application which extracts mails from Gmail using Gmail API for Python & avail extracted mails to the user in JSON format which they can download.
but the problem lies in fetching session, it takes too much time to fetch mails(for 100 mails 72 seconds, its too much). so as a user it will irritate me.
Please give suggestion if anything can be done to minimise fetch time.
As an alternate solution, I have thought to add one more feature i.e. "Mail me When my Download ready..!".
In this received mails from Gmail server in JSON format will be stored in our local database and a mail will be sent to the user with link to download that JSON file.
As I'm new to Django, I don't know how to implement it. Your valuable suggestions and help will be really helpful for me.
Please help.

Related

What's the best way to setup a google smtp server for noreply E-Mails sent from a Python application?

We are currently developing a python program that as part of its functionality sends noreply E-Mails to customers whenever something important happens. For testing we are sending them from a free noreply#gmail.com address using pythons smtplib library and that works without problems so far.
However when going live we want to change the address to a proper noreply#company.com address. We are already using Google workspaces and have user accounts with company E-Mails. But while reading up on how to get that to work I came across multiple guides and articles which were either confusing, outdated or don't really do what I was hoping for. So I have a few questions that I hope you could answer.
Do I have to create a new user account just for the noreply mails? I have read about aliases and groups but I am not sure that this is the right way to do it since the mails shouldn't be sent from a renamed existing user account. I'd rather not set up a user just for sending E-Mails.
How many mails can I send when it is all set up? Free accounts can send 500 daily, workspace users have 2000, up to 10000 with smtp relay (if that's possible)? If the program ever exceeds this limit is there any way to increase it or should I already look for an alternative.
Finally how do I set this up? Most guides are for the old Gsuite. I feel like there should be an easy way to set this up that I am missing. All I'm looking for is creating a generic noreply#company.com address for our project to programmatically send a higher amount of mails.
Thanks for the help.

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!

Is there a way to get the emails of new YouTube subscribers? Python

So as the title says.. ''Is there a way to get the emails of new YouTube subscribers? Python''
i am planning to build an emailing list wherein if a person subscribes to my youtube channel, i want to be able to automatically send them an email containing my latest blogs and video updates. so is there a way to do that? maybe using the youtube api? or external codes or websites?
i know that i could just ask them for their email addresses using a google form and link that to a python script that sends emails using SMTP but i want to do it automatically when they subscribe to my youtube channel.
any help will help alot
thank you
Yes, you can. You can use the youtube api. Simply call the api, and get whatsoever the element is, for new subscribers. Then, you can create a text and mail it to yourself.
For making it run all the time, you have to go to the terminal and keep it running...

Automatic email sending from a gmail account using script

I need to send email with same content to 1 million users.
Is there any way to do so by writing script or something?
Email Id's are stored in Excel format.
It is absolutely possible for a bot to be made that creates gmail accounts, in fact many already exist. The main problem is how to solve the captcha that is required for each new account, however there are services already built to handle this. The only problem then is being willing to violate googles terms of services, as I'm sure this does in one way or another.
This link will help you to achieve what you wanted
http://naelshiab.com/tutorial-send-email-python/

Youtube Video upload

I'm trying to make a video upload to youtube using the gdata api.
I also had a look at the hello-youtube example.
Does anyone knows if I can use youtube browser upload without requiring the user to loggin to youtube? I want the user to select a video from their computer, and upload it to my developer account (not the users account). Is this possible?
In case it its, can someone help me with an example?
Many thanks!
EDIT
I found that it's possible to log from server side using any normal youtube account (not sharing my password, although my account still subjected of being suspended in case someone submits bad content). The code can be found on the "ClientLogin authentication for installed applications" of the python developers guide
This is a very bad idea because you are responsible for the content of your channel and the usage of your account.
It also means you will share your Google password with the entire world. Bad idea, bad idea, bad idea, ...

Categories

Resources