最近の検索
最近の検索はありません

Romit Bhandari
参加日2024年5月28日
·
前回のアクティビティ2024年5月28日
フォロー中
0
フォロワー
0
合計アクティビティ
1
投票
0
受信登録
0
アクティビティの概要
バッジ
記事
投稿
コミュニティへのコメント
記事へのコメント
アクティビティの概要
さんの最近のアクティビティ Romit Bhandari
Romit Bhandariさんが投稿を作成しました:
When I try following python code to fetch content from a url hosted in Zendesk, i get following 403 Forbidden Error:
Python Code:
html_content = fetch_content(url)
if html_content:
text_content = html_to_text(html_content.decode('utf-8'))
output_pdf_file = os.path.join('output', 'output.pdf') # Output directory and file name
if not os.path.exists('output'):
os.makedirs('output')
save_text_to_pdf(text_content, output_pdf_file)
print(f'PDF saved to {output_pdf_file}')
Error:
Error fetching https://support.qs.com/hc/en-gb/articles/13248576515484-2024-QS-World-University-Rankings-Online-MBA-Badges: HTTP Error 403: Forbidden
Can someone help here..
投稿日時:2024年5月28日 · Romit Bhandari
0
フォロワー
1
投票
1
コメント