fakenewsnet_modified's People
fakenewsnet_modified's Issues
Problem with collecting tweets
I can download news content normally, but the following error occurs when collecting tweets.How can I fix this problem?
Error: Downloading politifact fake politifact15014 tweets
Traceback (most recent call last):
File "main.py", line 70, in
download_dataset()
File "main.py", line 66, in download_dataset
data_collector.collect_data(data_choices)
File "/home/server/Dai/FakeNewsNet_modified/code/tweet_collection.py", line 66, in collect_data
collect_tweets(news_list, choice["news_source"], choice["label"], self.config)
File "/home/server/Dai/FakeNewsNet_modified/code/tweet_collection.py", line 27, in collect_tweets
data = pd.DataFrame(columns= features)
File "/home/server/.conda/envs/fakenewsnet/lib/python3.7/site-packages/pandas/core/frame.py", line 411, in init
mgr = init_dict(data, index, columns, dtype=dtype)
File "/home/server/.conda/envs/fakenewsnet/lib/python3.7/site-packages/pandas/core/internals/construction.py", line 242, in init_dict
val = construct_1d_arraylike_from_scalar(np.nan, len(index), nan_dtype)
File "/home/server/.conda/envs/fakenewsnet/lib/python3.7/site-packages/pandas/core/dtypes/cast.py", line 1221, in construct_1d_arraylike_from_scalar
dtype = dtype.dtype
AttributeError: type object 'object' has no attribute 'dtype'
Sample of tweet_keys_file.txt
Hi @SaschaStenger ,
Thank you so much for providing a modified vision. When I tried to provide tweet keys, as I don't know the read format of keys in 'tweet_keys_file.txt', the code always got keys failed. Could you please provide a empty file of 'tweet_keys_file.txt', so that we can know the input format of keys. Much appreciated!
TypeError: '_io.TextIOWrapper'
the regular repo runs fine, but i get this error when trying.
Thanks.
Traceback (most recent call last): File "main.py", line 10, in <module> from tweet_collection import TweetCollector File "/home/user/FakeNewsNetMod/code/tweet_collection.py", line 12, in <module> line_1 = fKeysIn[0].rstrip().split(',') TypeError: '_io.TextIOWrapper' object is not subscriptable
Can you give a Baidu web disk link, including the complete data set?
tweets missing
I can download news.json but not the tweets, though I give the key, shoud the key be put inside commas?
Bad Authentication Data Error when collecting retweets
I get the following error when trying to collect the retweets
"twython.exceptions.TwythonAuthError: Twitter API returned a 400 (Bad Request), Bad Authentication data."
I want to crawl the news for specific keywords or topics, is it possible?
Please update your dependencies in requirements
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.