Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am looking to send data from a SQL server to a third party api via Python.
I was wondering if anyone could provide any references to follow that work through this process.
P.S - I've looked online but, suprisingly haven't found anything - perhaps I am not searching for the correct terms.
Any help would be appreciated.
Well, this tells you how to connect to MySQL via Python:
How do I connect to a MySQL Database in Python?
And this tells you how to consume a REST API via Python:
How do I get JSON data from RESTful service using Python?
You could access a REST API from MySQL via UDF, but that's not the kind of logic one should put in the database.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 months ago.
Improve this question
can i share session between different lang applications like:
1st is based on C# and
2nd is based on python, so can i somehow share session?
if yes can someone please tell me how?
You need to have a common means of storing and sharing the data.
This can be your DB or better a shared cache like Redis.
Session data can be stored with a session id as a Key.
Then you can store this Key as a Cookie value to the client which will be passed on every request.
One of the most standardized ways of storing this information into the client is JWT
JWT can be read by almost all kind of server apps.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
So, I wanted to make something to automatically sign me into my twitter account. How would I use python, or HTML, to go to twitter.com/login and automatically put in my username and password, and then submits it?
You don't have to go through browser automation to access data in twitter. What you really need is a Twitter API. There are multiple Python clients, like tweepy or python-twitter.
What you want to do is called Web automation. In Python, I recommend Selenium. It's pretty much all you need. The documentation is quite good and you can find examples online.
Note: use passwd for your password! Keep it safe 👊
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Is it possible to create a python program, that can interact with Google's Translate?
I'm thinking of a way that firstly opens a .txt file, then reads the first line, then interacts with google translate and translates the word from a spesific language to a spesific language, then logs it into a different txt file.
Main question: Is it possible to make Python 3.3 interact with Google Translate?
Please tell me if I didn't explain myself enough.
Thank you,
Tharix
The google API python client supports the google translate and lets you translate from one language to another:
http://code.google.com/p/google-api-python-client/source/browse/#hg%2Fsamples%2Ftranslate
Maybe you should use something more specific like google translate api :
Google Api sample at google code
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
How can I create a client side database to store information of users on client side. Does anybody know of any tutorials or pointers? Which is the recommended database to use? My client is in .js and uses Django framework.
What you are asking for is called Web Storage and is part of HTML5.
http://diveintohtml5.info/storage.html
http://www.gwtproject.org/doc/latest/DevGuideHtml5Storage.html
However, many times when people SAY they need a client-side database, I ask them the details and it turns out that they don't really need client side storage at all, so proceed with caution.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I have a python script written up and the output of this script is a list . Right now I need to get it online and make it accesible to others. I looked at Django , but then I realised that it may be kind of hard to create the UI. Is there any simple way to create a UI in Django and map it to an existing python script. Right now I am not using sql and things like that. Or is there a simpler way by which I can proceed?
I'd go with Flask or web.py.
Django pays off if you develop a large app; yours is not.
Probably all you need is two pages: one with an input form, and another with results. As long as your input is text, you should have little trouble taking input from a POST handler and passing it as is to your script.
Both microframeworks have tutorials: here's web.py's, and Flask's is right on the home page. Should get you started very quickly.