Merge pull request #137 from soxoj/minor-fixes

Version patch and some minor fixes
This commit is contained in:
soxoj
2021-05-08 16:57:30 +03:00
committed by GitHub
5 changed files with 14 additions and 5 deletions
+1 -1
View File
@@ -24,7 +24,7 @@
## About ## About
**Maigret** collect a dossier on a person **by username only**, checking for accounts on a huge number of sites and gathering all the available information from web pages. Maigret is an easy-to-use and power fork of [Sherlock](https://github.com/sherlock-project/sherlock). **Maigret** collect a dossier on a person **by username only**, checking for accounts on a huge number of sites and gathering all the available information from web pages. Maigret is an easy-to-use and powerful fork of [Sherlock](https://github.com/sherlock-project/sherlock).
Currently supported more than 2000 sites ([full list](./sites.md)), search is launched against 500 popular sites in descending order of popularity by default. Currently supported more than 2000 sites ([full list](./sites.md)), search is launched against 500 popular sites in descending order of popularity by default.
+7
View File
@@ -1,5 +1,12 @@
"""Maigret""" """Maigret"""
__title__ = 'Maigret'
__package__ = 'maigret'
__author__ = 'Soxoj'
__author_email__ = 'soxoj@protonmail.com'
from .__version__ import __version__
from .checking import maigret as search from .checking import maigret as search
from .sites import MaigretEngine, MaigretSite, MaigretDatabase from .sites import MaigretEngine, MaigretSite, MaigretDatabase
from .notify import QueryNotifyPrint as Notifier from .notify import QueryNotifyPrint as Notifier
+3
View File
@@ -0,0 +1,3 @@
"""Maigret version file"""
__version__ = '0.2.2'
+2 -3
View File
@@ -13,6 +13,7 @@ from typing import List, Tuple
import requests import requests
from socid_extractor import extract, parse, __version__ as socid_version from socid_extractor import extract, parse, __version__ as socid_version
from .__version__ import __version__
from .checking import ( from .checking import (
timeout_check, timeout_check,
SUPPORTED_IDS, SUPPORTED_IDS,
@@ -37,8 +38,6 @@ from .submit import submit_dialog
from .types import QueryResultWrapper from .types import QueryResultWrapper
from .utils import get_dict_ascii_tree from .utils import get_dict_ascii_tree
__version__ = '0.2.2'
def notify_about_errors(search_results: QueryResultWrapper, query_notify): def notify_about_errors(search_results: QueryResultWrapper, query_notify):
errs = errors.extract_and_group(search_results) errs = errors.extract_and_group(search_results)
@@ -166,7 +165,7 @@ def setup_arguments_parser():
type=int, type=int,
metavar='RETRIES', metavar='RETRIES',
default=1, default=1,
help="Attempts to restart temporary failed requests.", help="Attempts to restart temporarily failed requests.",
) )
parser.add_argument( parser.add_argument(
"-n", "-n",
+1 -1
View File
@@ -26202,7 +26202,7 @@
"usernameUnclaimed": "noonewouldeverusethis7" "usernameUnclaimed": "noonewouldeverusethis7"
}, },
"Reddit Search (Pushshift)": { "Reddit Search (Pushshift)": {
"urlMain": "https://camas.github.io/", "urlMain": "https://camas.github.io/reddit-search/",
"url": "https://camas.github.io/reddit-search/#{{\"author\":\"{username}\",\"resultSize\":100}}", "url": "https://camas.github.io/reddit-search/#{{\"author\":\"{username}\",\"resultSize\":100}}",
"urlProbe": "https://api.pushshift.io/reddit/comment/search?html_decode=true&author={username}&size=100", "urlProbe": "https://api.pushshift.io/reddit/comment/search?html_decode=true&author={username}&size=100",
"usernameClaimed": "arkasha", "usernameClaimed": "arkasha",