-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
[QUESTION] 'Config' object has no attribute 'Tabs' [x] output._output #976
Comments
Same issue here ; what i did was to comment the line 56 from write.py |
Experiencing the same problem too - twint is working, but I can't export to a csv file! |
Tried that. Didnt work. Any suggestions? |
Make sure that you are changing in the right place (typically it it is the /usr/lib/pythonxxx/twint). What os are you using? |
Using OS posix on a Mac.
Yup looked up all write.py in twint files to make sure there weren't any
duplicates. Couldn't spot one.
Made the changes. Currently writing output in json and converting it to csv
with pandas.
Also new to this so not very well adapted to python.
[image: Mailtrack]
<https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&>
Sender
notified by
Mailtrack
<https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&>
10/21/20,
01:42:47 PM
…On Wed, Oct 21, 2020 at 12:49 PM robertmuster ***@***.***> wrote:
Make sure that you are changing in the right place (typically it it is the
/usr/lib/pythonxxx/twint). What os are you using?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#976 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALX3SFPNLOZ4G5YQ3RVWSH3SL2DPRANCNFSM4SYCL2TA>
.
--
Regards,
Shubham Garg
Director of Research & Development
Star Harbor Space Academy
Email : shubham@starharboracademy.com
Phone : +1 669 278 3320
|
After making the modification in write.py, you need to restart the script and import twint again. It should work. |
This patch fixes the issue caused by twintproject#967, which broke the functionality of saving the retrieved data into a csv file.
* fix for deprecation of v1.1 endpoints * fix for cashtags * typo * fix(datetime): _formatDateTime tries %d-%m-%y * fix(pandas): use new str-format Tweet.datetime data rep * fix(pandas datetime): use ms * fix(cashtags unwind): undo PRs field removals * Revert "fix(cashtags unwind): undo PRs field removals" This reverts commit dfa57c2. * fix(pandas): remove broken fields * fix(cash): use provided field as suggested by pr review * fix (cashtags): re enable cashtags in output * fix(db): remove broken fields * fix(datetime): Y-m-d and factored out * fixes twintproject#947 * fix(get.py): json exception in User * to-do: added to-do tasks added to-do tasks for --profile-full feature * chore(test): PEP8 formatting * fix(profile): ported user profile to v2 API fixed user profile feature which was broken since v1 endpoints were deprecated * updated Readme * fix: fixes twintproject#965 inconsistent timezones * fix: handle tombstone tweets tombstone tweets are those tweets which are flagged by Twitter for being inappropriate, misleading, graphic etc. * fixes twintproject#976: saving tweets to csv This patch fixes the issue caused by twintproject#967, which broke the functionality of saving the retrieved data into a csv file. * feature: port Lookup to v2 endpoint fixes twintproject#970, lookup is ported to v2 endpoint. this can now be used to lookup a certain profile. Co-authored-by: SiegfriedWagner <mateus.chojnowski@gmail.com> Co-authored-by: lmeyerov <leo@graphistry.com>
Issue Template
Please use this template!
Initial Check
pip3 install --user --upgrade -e git+https://github.com/twintproject/twint.git@origin/master#egg=twint
;Command Ran
import nest_asyncio
nest_asyncio.apply()
c = twint.Config()
c.Lang='en'
c.Since='2020-08-01'
c.Until='2020-08-03'
c.Store_csv=True
c.Count=True
c.Search='vikramlander'
c.Output="tmp3214.csv"
#path='/Users/Desktop/'
#c.Output=path+'temp_Data.csv'
twint.run.Search(c)
Description of Issue
The code pulls up 46 tweets however they are not getting written into the csv file. I have tried to specify the exact path and also to let it create a folder. I used the nest_asyncio to bypass the event loop is already running error. Please Help. Thanks
Environment Details
The text was updated successfully, but these errors were encountered: