twintproject / twint

An advanced Twitter scraping & OSINT tool written in Python that doesn't use Twitter's API, allowing you to scrape a user's followers, following, Tweets and more while evading most API limitations.
MIT License
15.66k stars 2.72k forks source link

error when saving in DB followers and followings and the workaround #82

Closed Nestor75 closed 6 years ago

Nestor75 commented 6 years ago

Initial Check

Make sure you've checked the following.

If this is a feature request please specify in the title:

Command

python twint.py -u nestorpomar --followers --database ./twitterdata.db and python twint.py -u nestorpomar --followers --database ./twitterdata.db

Description of Issue

it gives a different error in each case but the root cause is the same

in file followings.py original code: if self.config.Database: db.following(self.conn, self.config.Username, output)

workaround: if self.config.Database: db.following(self.conn, self.config.Username,User.name )

in the file followers.py if self.config.Database: db.followers(self.conn, self.config.Username, output)

workaround: if self.config.Database: db.followers(self.conn, self.config.Username, User.name)

OS Details

Using Windows, Linux? linux What OS version? 16

haccer commented 6 years ago

@Nestor75 Thanks for finding this!

output was the variable originally being passed in an old version, I had forgot to rename it to User.name. The issue has been fixed in this commit

Nestor75 commented 6 years ago

Hi @haccer I think there is a similar problem with folowers.py

pielco11 commented 6 years ago

@Nestor75 I found a typo error, now I can scrape both followers and following users

Nestor75 commented 6 years ago

:) grat :)