Skip to content

Commit c63c492

Browse files
committed
fix: workaround cloudflare blocking the wordpress loader
1 parent e62d655 commit c63c492

File tree

1 file changed

+1
-1
lines changed
  • src/wordpress_markdown_blog_loader

1 file changed

+1
-1
lines changed

src/wordpress_markdown_blog_loader/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def __init__(self, host: Optional[str] = None):
269269
self._media: List[Medium] = {}
270270
self.headers = {
271271
"accept": "application/json",
272-
"User-Agent": "Wordpress markdown blog loader - Python",
272+
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.0 Safari/605.1.15",
273273
}
274274
self.session = requests.Session()
275275

0 commit comments

Comments
 (0)