Comments (9)
Yeah these are ANSI codes for colored output. I've had success with https://github.com/tartley/colorama
from sherlock.
Would recommend Colorama 11/10. Actually a very simple fix if it is used.
[Colorama] has the happy side-effect that existing applications or libraries which use ANSI sequences to produce colored output on Linux or Macs can now also work on Windows, simply by calling colorama.init()
Though, I have heard that Colorama is a tad bit slower than Hue.
from sherlock.
I have heard that Hue is very good.
Which one should we use? Hue or Colorama?
from sherlock.
Hue's README says:
Note: Windows versions below windows 10 do not support ANSI escape sequences so the colors will not be printed in command prompt.
Colorama can also be used to wrap other color libraries on Windows (it will do nothing on other platforms), so you can use both, actually. However, this will only work if you can force Hue to print colors on old Windows versions.
from sherlock.
hue works perfectly
run pip install huepy
add from huepy import *
to the importing part of the sherlock.py file
from sherlock.
I personally think Colorama
's style are better than Hue
's style. Below are the comparison of two libraries.
Hue
from hue import *
print red('This string is red')
Colorama
from colorama import Fore
print Fore.RED + 'This string is red'
The point here, if use Hue
, the code might end up like print(red('This string is red'))
. On the other hand, if we use Colorama
the code likeliest be like print(Fore.RED + 'This string is red')
. Unless the code are not going to change to something more readable, I reckon this would not matter.
from sherlock.
Closed via #71
from sherlock.
Looks like there's still issues in some shells
from sherlock.
Closing this issue as it has been fixed. There is also an option not not have colors which was introduced in #463
from sherlock.
Related Issues (20)
- Multiprocessing control. HOT 3
- # clone the repo $ git clone https://github.com/sherlock-project/sherlock.git # change the working directory to sherlock $ cd sherlock # install the requirements $ python3 -m pip install -r requirements.txt
- .
- boody
- Pandas installing error metadata-generation-failed HOT 1
- Yandex Music has a captcha HOT 15
- Problem HOT 4
- Não faça isso em casa .k.k.k. HOT 1
- FlareSolverr Support HOT 2
- +989177265981
- Add game related categorization and functionality HOT 2
- How do I use this to search someone HOT 1
- Hjejej
- Facebook <!__
- Site support request HOT 4
- Displayed hyperlinks broken by spaces in username
- Skip adult content filter for sites explicitly listed
- SHERLOCK// ERROR "string indices must be integers, not 'str' " HOT 1
- False positives (Kick, LibraryThing) HOT 2
- Safe removal of openpyxl dependency HOT 2
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 sherlock.