最近搜索
没有最近搜索

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
Comment