[QUESTIONS] twint and python3 twint.py don't show the same results #309
Comments
Hi @mubartok ,
About Elasticsearch, Kibana and Elasticsearch are part of the ELK stack so you can use the second one without the first one, this one is like a "front-end" Best |
Hi @pielco11, Thanks for your quick answer. When I'm using the Is it possible to get exactly the same results when using Thanks about Elasticsearch, I don't know if it's more efficient to use it than a classic firebase but I'll try to figure it out. |
are there any specific reason why you are still using About Elasticsearch, I use it because it's scalable, has replicas, you can index a few 1000s of tweets per second and a lot of other features as "score" in results and full-text search. If you want to do some tests please feel free to provide us benchmarks so that we can compare solutions and maybe provide other storing options |
Thanks to you, I realised that I had a greatly outdated version of By the way, thanks a lot for everything, for twint, the quick answers and the great help. |
About Elasticsearch, I made a quick search and I think it's wayyy more efficient than firebase for this usage ;) |
To better integrate Twint with other technologies we will create a "Twint API" so that you will be able to query requests via http(s). If you really need a portable executable of Twint, I suggest you to integrate sys.argv or even argparse into a little script, and then compile the script: import sys
import twint
c = twint.Config()
c.Username = sys.argv[1]
twint.run.Search(c) |
Very nice for the Twint API, do you know approximately the delay before it's available? I want to use a standalone executable to get rid of python and be able to run it from any computer, just by running the command. |
Honestly I'm not able to provide you a specific date, but almost sure after the end of this month.
you could get the old |
I did what you said for the script, but now I have this:
And a lot of results that don't have any link with my request. |
Ok, I'll keep myself updated then 😉 |
I tried that little script and it works correctly with my query, so I guess that it depends by one that you are requesting. Do you still get the errors without using the compiled version? (there should not be differences because you are not changing anything) |
Yes, I'm getting the same errors when I'm using the script.py I just created, I guess I did something wrong. |
Too early for conclusions, sometimes is just Twint that is not playing well with hidden tweets or Twitter that confuses itself. May you provide me your query so that we find a solution? |
Sure, it doesn't work whatever the request. I try with my twitter profile which is empty so it's easier to test, I'm using the following command: But I get the same error with any other request, -s "...", etc. |
import sys
import twint
c = twint.Config()
c.Username = sys.argv[1]
twint.run.Search(c) This is really basic and should be used with |
Oh yeah, I didn't even read the script... Thanks, I'll think about a solution later 🙂 Thanks for your time! |
@mubartok great! In case feel free to ping me! |
@pielco11 thanks! I have an error with ES (missing [lat] field), which I think comes from the python code (missing check). Do I open a new issue? Here the end of the error stack:
|
Indexes are created only once, so I guess that some tweets are indexed but others break the code, is this correct? |
Yes, I guess (by reading the error message) because some tweets don't have lat/long? |
@mubartok that's correct, may you provide me your query so that I can see in details how to mitigate the error? |
Sure, there it is: |
In that case the place is McCormick Place Lakeside Center and you get an error because So for now I'm going to add a workaround Update your local repo with |
@pielco11 It's an old thread but I ran into this problem today. Same issue. is it already fixed? I tried the workaround mentioned in this thread but that did not help. Workaroud: Update your local repo with pip3 install --upgrade -e git+https://github.com/twintproject/twint.git@origin/master#egg=twint Query:twint -s "#asco2018" -es localhost:9200 File "c:\users\asharma\appdata\local\programs\python\python38\lib\site-packages\elasticsearch\helpers\actions.py", line 188, in _process_bulk_chunk_success |
Same issue with twint -u "username" -s localhost:9200 |
@tmerien did you figure out a solution? I am also running into this error. |
Hello there,
First of all, this is a great tool. I saved so much time using it.
When I'm trying to use the script directly with python, it displays less info than with the executable. Are there options to add when using the python script? For example: python3 twint.py -u username/twint -u username don't display the same results.
One last question, is it possible to use the --elasticsearch option without Kibana (with a custom dashboard I'll create myself)?
Thanks in advance for your help
The text was updated successfully, but these errors were encountered: