{"id":18887479,"url":"https://github.com/pdrb/askstack","last_synced_at":"2026-02-24T07:30:18.409Z","repository":{"id":57411886,"uuid":"115063510","full_name":"pdrb/askstack","owner":"pdrb","description":"Search answers on Stack Overflow","archived":false,"fork":false,"pushed_at":"2020-10-21T23:54:44.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-31T10:36:46.794Z","etag":null,"topics":["answer","ask","search","stackoverflow"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pdrb.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-22T01:36:38.000Z","updated_at":"2021-12-01T23:33:13.000Z","dependencies_parsed_at":"2022-09-07T23:30:55.094Z","dependency_job_id":null,"html_url":"https://github.com/pdrb/askstack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdrb%2Faskstack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdrb%2Faskstack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdrb%2Faskstack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdrb%2Faskstack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pdrb","download_url":"https://codeload.github.com/pdrb/askstack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239859562,"owners_count":19708863,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["answer","ask","search","stackoverflow"],"created_at":"2024-11-08T07:37:59.575Z","updated_at":"2026-02-24T07:30:18.378Z","avatar_url":"https://github.com/pdrb.png","language":"Python","readme":"|Black| |Downloads|\n\naskstack\n========\n\nSearch answers on Stack Overflow. Can use Google, Bing or DuckDuckGo search\nengine.\n\nJust pass some keywords to the script and it will uses a search engine to find\nthe most relevant pages on Stack Overflow.\n\nThen, it will get the first code snippet from the question page or the full\nanswer text.\n\nSimple example::\n\n    $ askstack python delete dict key\n    ---------------------------------------------------------------------------\n\n    Question: How to remove a key from a python dictionary?\n\n    my_dict.pop('key', None)\n\n\n    Answer from: https://stackoverflow.com/questions/11277432\n\n    ---------------------------------------------------------------------------\n\n    Question: Delete an item from a dictionary\n\n    del d[key]\n\n\n    Answer from: https://stackoverflow.com/questions/5844672\n\n    ---------------------------------------------------------------------------\n\n\nNotes\n=====\n\n- Works on Python 2.7 and Python 3.4+\n\n\nInstall\n=======\n\nInstall using pip::\n\n    pip install askstack\n\n\nUsage\n=====\n\n::\n\n    Usage: askstack keywords... [options]\n\n    search answers on stackoverflow\n\n    Options:\n    --version       show program's version number and exit\n    -h, --help      show this help message and exit\n    -a ANSWERS      number of answers to retrieve (default: 2)\n    -e ENGINE       search engine to use: 'google', 'bing', 'duckduckgo' or\n                    'fallback' - fallback will try google and fallback to bing\n                    and duckduckgo if a search fails (default: fallback)\n    -f, --fulltext  get the full answer text (default: disabled)\n    -s SLEEP        sleep time between requests (default: 0.5)\n    -t TIMEOUT      timeout in seconds to wait for reply (default: 5)\n\n\nExamples\n========\n\nIf you are feeling lucky, get only the first code snippet::\n\n    $ askstack linux gzip directory -a 1\n\nGet full first answer::\n\n    $ askstack linux gzip directory -a 1 -f\n\nTry to get three answers using only DuckDuckGo as the search engine::\n\n    $ askstack linux gzip directory -a 3 -e duckduckgo\n\n\n.. |Black| image:: https://img.shields.io/badge/code%20style-black-000000.svg\n    :target: https://github.com/psf/black\n\n.. |Downloads| image:: https://pepy.tech/badge/askstack\n    :target: https://pepy.tech/project/askstack\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpdrb%2Faskstack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpdrb%2Faskstack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpdrb%2Faskstack/lists"}