umitkaanusta / tia Goto Github PK
View Code? Open in Web Editor NEWYour Advanced Twitter stalking tool
License: GNU Affero General Public License v3.0
Your Advanced Twitter stalking tool
License: GNU Affero General Public License v3.0
@umitkaanusta I cloned the repository and use it as CWD. The README barely elaborates on how to run the script, which is why I opened the issue. Let me walk you through my process.
Clone the repository
git clone https://github.com/umitkaanusta/TIA
Change directory into repository
cd TIA
Install required packages from pip
pip install -r requirements.txt
At this point I should be ready to run the script.
Change directory into tia/stalk
cd tia/stalk
Open up scrape_user.py
in text editor.
micro scrape_user.py
Instructions in the bottom of the file are as follows:
\# Create a user instance with the username, like uka = User("umitkaanusta")
\# Then scrape_user(uka)
(This is where the confusion begins.) I Add the following to the top of the file below the import statements.
user = User("some_username")
scrape_user(user)
Save and close out editor.
Execute the scrape_user.py
script.
python3 scrape_user.py
I receive the following error:
Traceback (most recent call last):
File "scrape_user.py", line 1, in
from tia.stalk import URL_ROOT
ModuleNotFoundError: No module named 'tia.stalk'
What am I doing wrong? Why is this not working?
Was this written in Windows by any chance?
Originally posted by @anoduck in #3 (comment)
Create a requirements.txt file for other developers to be able to run locally.
And, optionally, add dependencies section to README.md
Barely a novice programming python, and I am a little lost on how exactly the script is intended to be run. I opened up pycharm and attempted to add the variable then execute the script with the python console:
usr = User(some_user)
scrape_user(usr)
As you probably surmised this did not work in the least. Then I added the variable user = "some_user", then attempted to execute the script and this did not work as well. Adding
user = User("some_user") failed as well. So, I am lost as to how exactly this is supposed to be run. A little help would be greatly appreciated.
Hey folks, it's been a while and the dependency twint
(used to scrape Twitter) does not work anymore, and the official Twitter API is quite expensive. So, TIA won't work anymore.
But if you get ahold of some twitter data, you can use the models/methods here as a first step (the gender model is quite basic but still decent). The webpage on flask could also be helpful if you need some boilerplate code to visualize your results.
It was my first hit project on GH, surely learned a lot, and thank you for your support!
All the best,
Umit
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.