Projects STRLCPY maigret Commits 375ff526
🤬
  • Fixed work with id types, Orbys added

  • Loading...
  • Soxoj committed 4 years ago
    375ff526
    1 parent b303cdbf
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■
    maigret/maigret.py
    skipped 540 lines
    541 541   query_notify,
    542 542   logger,
    543 543   timeout=30,
     544 + id_type=site.type,
    544 545   forced=True,
    545 546   no_progressbar=True,
    546 547   )
    skipped 164 lines
    711 712   parser.add_argument("--parse",
    712 713   dest="parse_url", default='',
    713 714   help="Parse page by URL and extract username and IDs to use for search."
     715 + )
     716 + parser.add_argument("--id-type",
     717 + dest="id_type", default='username',
     718 + help="Specify identifier(s) type (default: username)."
    714 719   )
    715 720   parser.add_argument("username",
    716 721   nargs='+', metavar='USERNAMES',
    skipped 53 lines
    770 775   
    771 776   # Usernames initial list
    772 777   usernames = {
    773  - u: 'username'
     778 + u: args.id_type
    774 779   for u in args.username
    775 780   if u not in ['-']
    776 781   }
    skipped 140 lines
    917 922   
    918 923   # reporting for all the result
    919 924   if general_results:
     925 + if args.html or args.pdf:
     926 + print('Generating report info...')
    920 927   report_context = generate_report_context(general_results)
    921 928   # determine main username
    922 929   username = report_context['username']
    skipped 24 lines
  • ■ ■ ■ ■ ■
    maigret/resources/data.json
    skipped 5640 lines
    5641 5641   "GoogleMaps": {
    5642 5642   "tags": [
    5643 5643   "global",
    5644  - "maps",
    5645  - "us"
     5644 + "maps"
    5646 5645   ],
    5647 5646   "type": "gaia_id",
    5648  - "checkType": "status_code",
     5647 + "checkType": "message",
     5648 + "presenseStrs": [
     5649 + "[\"Contributions by"
     5650 + ],
     5651 + "absenceStrs": [
     5652 + "My Contributions to Google Maps"
     5653 + ],
    5649 5654   "alexaRank": 1,
    5650 5655   "url": "https://www.google.com/maps/contrib/{username}",
    5651 5656   "urlMain": "https://maps.google.com/",
    5652  - "usernameClaimed": "blue",
     5657 + "usernameClaimed": "105054951427011407574",
    5653 5658   "usernameUnclaimed": "noonewouldeverusethis7"
    5654 5659   },
    5655 5660   "GooglePlayStore": {
    5656 5661   "tags": [
    5657 5662   "global",
    5658  - "us"
     5663 + "apps"
    5659 5664   ],
    5660 5665   "checkType": "status_code",
    5661 5666   "alexaRank": 1,
    skipped 12141 lines
    17803 17808   "url": "https://www.sparkpeople.com/mypage.asp?id={username}",
    17804 17809   "urlMain": "https://www.sparkpeople.com",
    17805 17810   "usernameClaimed": "adam",
     17811 + "usernameUnclaimed": "noonewouldeverusethis7"
     17812 + },
     17813 + "Orbys": {
     17814 + "tags": [
     17815 + "us"
     17816 + ],
     17817 + "checkType": "message",
     17818 + "presenseStrs": [
     17819 + "profile_user_image"
     17820 + ],
     17821 + "absenceStrs": [
     17822 + "The page you are looking for cannot be found."
     17823 + ],
     17824 + "url": "https://orbys.net/{username}",
     17825 + "urlMain": "https://orbys.net",
     17826 + "usernameClaimed": "txmustang302",
    17806 17827   "usernameUnclaimed": "noonewouldeverusethis7"
    17807 17828   },
    17808 17829   "spletnik": {
    skipped 4640 lines
Please wait...
Page is in error, reload to recover