Closed ghost closed 3 years ago
https://github.com/rachmadaniHaryono/twint/tree/feature/main
can you try that and run twint help command like this python -m twint --help
?
https://github.com/rachmadaniHaryono/twint/tree/feature/main
can you try that and run twint help command like this
python -m twint --help
?
I get these error, VMWare - Kali: /usr/bin/python: No module named twint
WSL-Ubuntu: /usr/bin/python3: No module named twint.main; 'twint' is a package and cannot be directly executed
can you install it with pip3 install --user https://github.com/rachmadaniHaryono/twint/archive/feature/main.zip
after install, try pip3 show -f twint
example of the output
notice that there is twint/__main__.py
on list of files
can you try that and run twint help command like this python -m twint --help?
kali /usr/bin/python: No module named twint
it seems your env have python3 instead python so i will change the instruction based on python3 from now on
check your PATH env var on wsl ubuntu, for example with this command echo $PATH | tr -s ":" "\n" | sort
i got following result
notice there is /home/r3r/.local/bin
you can run twint with /home/neo/.local/bin/twint
for kali, try list files on installed location with ls /home/kali/src/twint
and see what is in there
for echo $PATH | tr -s ":" "\n" | sort
for /home/neo/.local/bin/twint
I got this output:
[-] Error: Please use at least -u, -s, -g or --near.
On Kali, for ls /home/kali/src/twint
Output:
automate.py elasticsearch LICENSE MANIFEST.in README.md requirements.txt setup.py test.py twint twint.egg-info
wsl ubuntu
as expected there is no /home/neo/.local/bin
.
for example i put these lines on .zshrc
export PYTHON_BIN_PATH="$(python3 -m site --user-base)/bin"
export PATH="$PATH:$PYTHON_BIN_PATH"
which will add python bin path to PATH.
for /home/neo/.local/bin/twint I got this output: [-] Error: Please use at least -u, -s, -g or --near.
this already meant you can already run twint. run /home/neo/.local/bin/twint --help
will print help section.
you can put alias to this or change PATH as stated above
kali linux
kali is a weird one. i got the same pip show
result only if i install from source after clone the repo
files on the location mean it is either the entire repo or files from the package
the next step maybe check python bin path ls $(python3 -m site --user-base)/bin
if there is twint
and also check PATH env var just as above
wsl ubuntu
as expected there is no /home/neo/.local/bin.
for example i put these lines on .zshrc
export PYTHON_BIN_PATH="$(python3 -m site --user-base)/bin" export PATH="$PATH:$PYTHON_BIN_PATH"
Thanks, now its working in WSL-Ubuntu
In Kali,
ls $(python3 -m site --user-base)/bin
twint is listed.
twint is listed.
maybe it is the same problem with PATH env var try doing the same check just like you did on ubuntu and add the same config to .zshrc
on kali
twint is listed.
maybe it is the same problem with PATH env var try doing the same check just like you did on ubuntu and add the same config to
.zshrc
on kali
I already tried it, it's not working.
on kali
echo $PATH | tr -s ":" "\n" | sort
?python3 -m site --user-base
?echo $PATH | tr -s ":" "\n" | sort
python3 -m site --user-base
output:
/home/kali/.local
I already tried it, it's not working.
based on that and your last post, it mean the path is not changed
you can try /home/kali/.local/bin/twint --help
to try to print help section
other thing you can do is to set up alias, for example alias twint=/home/kali/.local/bin/twint
/home/kali/.local/bin/twint --help
Still same error in Kali, after add the alias twint=/home/kali/.local/bin/twint
twint -s "python" --since 2020-12-10
Error:
zsh: command not found: twint
It is working in WSL-Ubuntu, that's enough for now, I'm still learning Linux & Python. Knew about twint from the recent video by @cybermentor
Thank you.
Edit: When I install Arch again, I'll add same .zshrc config & will check it.
sorry that it still doesn't work on kali
last word after issue closed
/home/kali/.local/bin/twint --help
actually working but i have no idea what happen with the error
i also have no idea why alias twint=/home/kali/.local/bin/twint
not working. if it work, running which twint
should give result twint: aliased to /home/kali/.local/bin/twint
Today Installed Arch, after adding
export PYTHON_BIN_PATH="$(python3 -m site --user-base)/bin"
export PATH="$PATH:$PYTHON_BIN_PATH"
to zshrc like Ubuntu-WSL, twint is working.
Thank you
pip3 install --user --upgrade -e git+https://github.com/twintproject/twint.git@origin/master#egg=twint
;Command Ran
Description of Issue
Environment Details
Have same issue in: