Editing Twitter Analysis DB
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
= Goal = | = Goal = | ||
− | This document | + | This document is new, the software is alpha but "works" Look at history tab to see what is going on. |
− | Twitter Analysis DB is a Python open source, program and an accompanying database | + | Twitter Analysis DB is a Python open source, program and an accompanying database ( and/or database creation tool ) for analysis of a body of tweets. Currently the program is in early alpha and its design goals are evolving at least as fast as the code is being written. |
The point: | The point: | ||
Line 15: | Line 15: | ||
* Have an accompanying db of English words ( right now sourced from Kaggle ) | * Have an accompanying db of English words ( right now sourced from Kaggle ) | ||
* Provide a variety of queries against the database for possible enlightenment. | * Provide a variety of queries against the database for possible enlightenment. | ||
− | |||
I will try to documented well enough so people can relatively easily extend and adapt the program. Or as alternative they can use other tools with the database like SQLiteStudio. It should be fairly easy to download and use even for those without a desire to dive into the code but, I assume some knowledge of Python, and a Python Environment to run it in. In Python 3.6 or so. | I will try to documented well enough so people can relatively easily extend and adapt the program. Or as alternative they can use other tools with the database like SQLiteStudio. It should be fairly easy to download and use even for those without a desire to dive into the code but, I assume some knowledge of Python, and a Python Environment to run it in. In Python 3.6 or so. | ||
− | See the graphical user interface here ( with screen shot ): | + | See the graphical user interface here ( with screen shot ): [[Twitter Analysis DB GUI]]. |
This application is also part of a family of applications see the category below: Python Projects. | This application is also part of a family of applications see the category below: Python Projects. | ||
− | This is an article started by Russ Hensel, see | + | This is an article started by Russ Hensel, see "http://www.opencircuits.com/index.php?title=Russ_hensel#About My Articles" About My Articles for a bit of info. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | ''' | + | Code will be at GitHub, see [[https://github.com/russ-hensel/python_smart_terminal Code at GitHub]] See the GUI here at [[Twitter Analysis DB GUI]] |
+ | '''Who should use this program and How:''' | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 53: | Line 36: | ||
|Person with little programming experience, no interest in Python. Looking for download and install. | |Person with little programming experience, no interest in Python. Looking for download and install. | ||
|Probably should use another program. | |Probably should use another program. | ||
− | |Not well suited to use this, | + | |Not well suited to use this, I do not plan to fix this. |
<!--------------------------------> | <!--------------------------------> | ||
<!--------------------------------> | <!--------------------------------> | ||
Line 64: | Line 47: | ||
|Modest Python experience | |Modest Python experience | ||
|Modify all over the place, save data to database ...... | |Modify all over the place, save data to database ...... | ||
− | |Program should be well documented in | + | |Program should be well documented in soruce, with some supplement in this wiki, or ask the author. |
<!-------------------------------- | <!-------------------------------- | ||
|-valign="top" | |-valign="top" | ||
Line 117: | Line 100: | ||
== Download == | == Download == | ||
− | Code | + | Code comming at GitHub, see [[https://github.com/russ-hensel/twitter_analysis_db GitHub Repository]] ( it is Python and you can run directly from the source ) Email me if you have issues ( use this link [[User:Russ_hensel]] ). |
You will get a zip file, unzip it and you should get: | You will get a zip file, unzip it and you should get: | ||
Line 123: | Line 106: | ||
.... whatever --| | .... whatever --| | ||
| | | | ||
− | |-- | + | |-- tbd----------- --| -> all code required to run the application ( not sure if smart_terminal or python_smart_terminal or nothing is top level name, just put it in some well named place ) |
− | + | | some logs from my running of the code may or may not be present, these will be deleted as they creep in, when you run the program you will | |
− | + | | get your own log files ... all typically named xxx.py_log | |
− | + | | | |
− | + | | -- images -> image files, mostly screen shots, icons... or what ever, not important for the code. | |
− | + | | -- wiki_etc -> various files documenting program, including at least some of the material from this wiki | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | Put them in your system making "....whatever" anything convenient for your Python | + | Put them in your system making "....whatever" anything convenient for your Python ( that is move the files to where you keep your Python source ). |
− | Note that there may be a certain amount of left over, dead code, in the | + | Note that there may be a certain amount of left over, dead code, in the directory I am cleaning out bit by bit, someday it may be nice and neat. For now if you want to tinker look at the design info below first. |
− | + | == Run == | |
− | + | Run it until it stops complaining about dependencies ( in the console ), after that ( and perhaps even before ) the GUI should come up. You are installed. | |
− | + | I have run the program on both Windows 10 and Rasperian on a RPi. It should work in most OS's. Let me know about issues. | |
− | + | Some parts of the program think that mySql is available. It should run fine without it ( there will be a message or two in the console ), untill you try to use the database then it is not so gracious. Straight ahead use as a terminal does not use the database. | |
= Configure to Run = | = Configure to Run = | ||
Line 163: | Line 141: | ||
When you run it it should open a windows a lot like the picture [[Twitter Analysis DB GUI]]. Errors may show up in your Python console or the log file ( look in parameters.py for the name of the log file, typically self.pylogging_fn = "tweet_app.py_log" ). The most likely errors will point to missing Python modules like pyperclip. You should install with pip ( or conda if using Spyder ). Let me know how it goes. | When you run it it should open a windows a lot like the picture [[Twitter Analysis DB GUI]]. Errors may show up in your Python console or the log file ( look in parameters.py for the name of the log file, typically self.pylogging_fn = "tweet_app.py_log" ). The most likely errors will point to missing Python modules like pyperclip. You should install with pip ( or conda if using Spyder ). Let me know how it goes. | ||
− | |||
− | * | + | *First configure parameters.py to know the name of a text editor on your system. For mine this is one of: |
<pre> | <pre> | ||
Line 178: | Line 155: | ||
*Now when you run it the button <Edit Parms> should let you edit the parameters.py file. Edit it and save. | *Now when you run it the button <Edit Parms> should let you edit the parameters.py file. Edit it and save. | ||
− | *Hit the <Restart> button | + | *Hit the <Restart> button. In a flash the program should restart with the new parameters, starting is fast because previously imported material does not need to be reimported. |
Line 206: | Line 183: | ||
*[[Python Desk Top Applications]] | *[[Python Desk Top Applications]] | ||
*[https://github.com/russ-hensel/twitter_analysis_db GitHub Repository] | *[https://github.com/russ-hensel/twitter_analysis_db GitHub Repository] | ||
− | |||
<!----------- | <!----------- |