Comments (8)
This happens when there is an empty line in the .dat file. I am not sure yet when they happen but a quick fix is to remove the empty line and start the fetch command again.
from twecoll.
Thanks. This seems to have solved it.
from twecoll.
Thank you @lucahammer ! I wonder how these empty lines come about... Any chance you can share the handle to reproduce this @jasonkgreen ?
from twecoll.
For the first time I was able to reproduce the error. It's probably something in the location field. Example of an account where the error happens: https://twitter.com/Atomroflbomber
from twecoll.
I am testing location = data['location'].strip()
in line 399 as a fix. Didn't have the problem again, but will test it some more before submitting a PR. I wonder if there are cases where it doesn't work because the problematic characters are surrounded by the location text. Then it would be better to replace \n and \t.
from twecoll.
As expected it wasn't enough. This account triggered another out of range error: https://twitter.com/luXus_Suizid.
I added the following as a workaround.
location = location.replace('\n', ' ') location = location.replace('\t', ' ')
from twecoll.
cool - we can probably chain them into a single line... wonder if this needs to be applied to other attributes as well
from twecoll.
made the change but left out the tab case.
from twecoll.
Related Issues (20)
- add option to pass a list of screen_names HOT 3
- No working init with large account HOT 3
- add requirements.txt HOT 1
- Add MIT License as a file to the repo HOT 1
- Init Command does not fetch all the followers of the first account HOT 2
- HTTP 401 error, but new setup does not work HOT 3
- Reverse auth credentials are invalid HOT 2
- HTTP Error 401: Authorization Required HOT 1
- GML not able to import into Gephi HOT 1
- Question about the 'init' stage of twecoll HOT 6
- "Diff'ing sets" question related to "intersection of sets" HOT 2
- [QUESTION] Can bio information be extracted during the init stage? HOT 1
- [QUESTION] Does Twecoll 'init' work for large accounts? HOT 8
- Attribute "user_id" does not conform to GML specification HOT 2
- Only 50% followers HOT 11
- [Question] Fetch to Skip .f files already created HOT 6
- [Errno 22] Invalid argument - Fetch Function HOT 6
- "Authorize the script" step didn't return a PIN HOT 2
- HTTP ERROR 401 : Authorization Required HOT 1
- list index out of range error on edgelist command HOT 1
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.
from twecoll.