Projects STRLCPY maigret Commits 5912ad4f
🤬
  • Added fuzzy search by StackOverflow

  • Loading...
  • Soxoj committed 3 years ago
    5912ad4f
    1 parent ee36dc01
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■ ■
    maigret/resources/data.json
    skipped 27642 lines
    27643 27643   "tags": [
    27644 27644   "news"
    27645 27645   ]
     27646 + },
     27647 + "StackOverflow": {
     27648 + "similarSearch": true,
     27649 + "absenceStrs": [
     27650 + "no-search-results"
     27651 + ],
     27652 + "presenseStrs": [
     27653 + "user-info",
     27654 + " user-details"
     27655 + ],
     27656 + "url": "https://stackoverflow.com/users/filter?search={username}",
     27657 + "urlMain": "https://stackoverflow.com",
     27658 + "usernameClaimed": "maigret",
     27659 + "usernameUnclaimed": "noonewouldeverusethis7",
     27660 + "checkType": "message",
     27661 + "alexaRank": 44,
     27662 + "tags": [
     27663 + "coding"
     27664 + ]
    27646 27665   }
    27647 27666   },
    27648 27667   "engines": {
    skipped 204 lines
  • ■ ■ ■ ■ ■
    sites.md
    1 1   
    2  -## List of supported sites (search methods): total 2487
     2 +## List of supported sites (search methods): total 2488
    3 3   
    4 4  Rank data fetched from Alexa by domains.
    5 5   
    skipped 17 lines
    23 23  1. ![](https://www.google.com/s2/favicons?domain=https://naver.com) [Naver (https://naver.com)](https://naver.com)*: top 50, kr*
    24 24  1. ![](https://www.google.com/s2/favicons?domain=https://developer.apple.com/forums) [AppleDeveloper (https://developer.apple.com/forums)](https://developer.apple.com/forums)*: top 50, forum, us*
    25 25  1. ![](https://www.google.com/s2/favicons?domain=https://discussions.apple.com/) [AppleDiscussions (https://discussions.apple.com/)](https://discussions.apple.com/)*: top 50, us*
     26 +1. ![](https://www.google.com/s2/favicons?domain=https://stackoverflow.com) [StackOverflow (https://stackoverflow.com)](https://stackoverflow.com)*: top 50, coding*
    26 27  1. ![](https://www.google.com/s2/favicons?domain=https://allods.mail.ru) [Allods (https://allods.mail.ru)](https://allods.mail.ru)*: top 50, forum, gaming, ru*
    27 28  1. ![](https://www.google.com/s2/favicons?domain=https://aa.mail.ru) [ArcheAge (https://aa.mail.ru)](https://aa.mail.ru)*: top 50, forum, gaming, ru*
    28 29  1. ![](https://www.google.com/s2/favicons?domain=https://cfire.mail.ru) [Crossfire (https://cfire.mail.ru)](https://cfire.mail.ru)*: top 50, gaming, ru*
    skipped 2462 lines
    2491 2492  1. ![](https://www.google.com/s2/favicons?domain=https://morguefile.com) [morguefile.com (https://morguefile.com)](https://morguefile.com)*: top 100M, photo*
    2492 2493  1. ![](https://www.google.com/s2/favicons?domain=https://wls.social) [wls.social (https://wls.social)](https://wls.social)*: top 100M, blog*
    2493 2494   
    2494  -Alexa.com rank data fetched at (2021-05-09 20:17:01.680061 UTC)
     2495 +Alexa.com rank data fetched at (2021-05-09 21:38:48.827253 UTC)
    2495 2496   
  • ■ ■ ■ ■ ■ ■
    utils/update_site_data.py
    skipped 73 lines
    74 74   dest="base_file", default="maigret/resources/data.json",
    75 75   help="JSON file with sites data to update.")
    76 76   
    77  - parser.add_argument('--without-rank', help='update with use of local data only', action='store_true')
     77 + parser.add_argument('--with-rank', help='update with use of local data only', action='store_true')
    78 78   parser.add_argument('--empty-only', help='update only sites without rating', action='store_true')
    79 79   parser.add_argument('--exclude-engine', help='do not update score with certain engine',
    80 80   action="append", dest="exclude_engine_list", default=[])
    skipped 13 lines
    94 94  """)
    95 95   
    96 96   for site in sites_subset:
    97  - if args.without_rank:
     97 + if not args.with_rank:
    98 98   break
    99 99   url_main = site.url_main
    100 100   if site.alexa_rank < sys.maxsize and args.empty_only:
    skipped 5 lines
    106 106   pool.append((site.name, url_main, th))
    107 107   th.start()
    108 108   
    109  - if not args.without_rank:
     109 + if args.with_rank:
    110 110   index = 1
    111 111   for site_name, url_main, th in pool:
    112 112   th.join()
    skipped 32 lines
Please wait...
Page is in error, reload to recover