Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arabic Search keywords issue #7

Open
Ghorab77 opened this issue Oct 15, 2023 · 1 comment
Open

Arabic Search keywords issue #7

Ghorab77 opened this issue Oct 15, 2023 · 1 comment

Comments

@Ghorab77
Copy link

Hello,

Iam trying to run the following query:

seo -q اخبار السعودية -e rq -dl 1 -gl sa -hl ar -ak XXX

I got the following error:

Traceback (most recent call last):
File "/usr/local/bin/seo", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.10/dist-packages/SeoKeywordResearch/cli.py", line 19, in main
args = parser.parse_args()
File "/usr/lib/python3.10/argparse.py", line 1848, in parse_args
self.error(msg % ' '.join(argv))
File "/usr/lib/python3.10/argparse.py", line 2604, in error
self.print_usage(_sys.stderr)
File "/usr/lib/python3.10/argparse.py", line 2574, in print_usage
self._print_message(self.format_usage(), file)
File "/usr/lib/python3.10/argparse.py", line 2540, in format_usage
return formatter.format_help()
File "/usr/lib/python3.10/argparse.py", line 295, in format_help
help = self._root_section.format_help()
File "/usr/lib/python3.10/argparse.py", line 226, in format_help
item_help = join([func(*args) for func, args in self.items])
File "/usr/lib/python3.10/argparse.py", line 226, in
item_help = join([func(*args) for func, args in self.items])
File "/usr/lib/python3.10/argparse.py", line 350, in _format_usage
assert ' '.join(opt_parts) == opt_usage
AssertionError

@ilyazub
Copy link

ilyazub commented Nov 23, 2023

@Ghorab77 It worked for me after wrapping the search query with quotes.

$ seo -q 'اخبار السعودية' -e rq -dl 1 -gl sa -hl ar --api-key=$SERPAPI_API_KEY
{
  "related_questions": [
    "ماذا تمتلك السعودية؟",
    "ماذا عن السعودية؟",
    "هل السعودية قوة عظمي؟",
    "هل تعتبر السعودية من الدول المتقدمة؟",
    "ما هو قرار السعودية الجديد 2023؟",
    "هل ما يحدث في السعودية من علامات الساعة؟"
  ]
}
Saving data in CSV format...
Data successfully saved to اخبار_السعودية.csv file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants