Generate family file steps on github action fails with ClientError: (403) Request forbidden, e.g.
Generating family file from http://zh.wikipedia.beta.wmcloud.org/
WARNING: Http response status 403
Traceback (most recent call last):
File "pwb.py", line 40, in <module>
sys.exit(main())
File "pwb.py", line 36, in main
runpy.run_path(str(path), run_name='__main__')
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/runpy.py", line 265, in run_path
return _run_module_code(code, init_globals, run_name,
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/runpy.py", line 97, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "pywikibot/scripts/wrapper.py", line 557, in <module>
main()
File "pywikibot/scripts/wrapper.py", line 541, in main
if not execute():
File "pywikibot/scripts/wrapper.py", line 528, in execute
run_python_file(filename, script_args, module)
File "pywikibot/scripts/wrapper.py", line 154, in run_python_file
exec(compile(source, filename, 'exec', dont_inherit=True),
File "pywikibot/scripts/generate_family_file.py", line 335, in <module>
main()
File "pywikibot/scripts/generate_family_file.py", line 331, in main
FamilyFileGenerator(*sys.argv[1:]).run()
File "pywikibot/scripts/generate_family_file.py", line 151, in run
w, verify = self.get_wiki()
File "pywikibot/scripts/generate_family_file.py", line 133, in get_wiki
w = self.Wiki(self.base_url, verify=verify)
File "/home/runner/work/pywikibot/pywikibot/pywikibot/site_detect.py", line 48, in __init__
check_response(r)
File "/home/runner/work/pywikibot/pywikibot/pywikibot/site_detect.py", line 301, in check_response
raise err_class(msg)
pywikibot.exceptions.ClientError: (403) Request forbidden -- authorization will not help
CRITICAL: Exiting due to uncaught exception ClientError: (403) Request forbidden -- authorization will not help
Error: Process completed with exit code 1.See