From 09ac7ed008a6ef5b89c78200fa632f7494e55bfc Mon Sep 17 00:00:00 2001 From: UncleCode Date: Sat, 25 Jan 2025 21:56:08 +0800 Subject: [PATCH] feat(demo): uncomment feature demos and add fake-useragent dependency Uncomments demonstration code for memory dispatcher, streaming support, content scraping, JSON schema generation, LLM markdown, and robots compliance in the v0.4.3b2 features demo file. Also adds fake-useragent package as a project dependency. This change makes all feature demonstrations active by default and ensures proper user agent handling capabilities. --- docs/examples/v0_4_3b2_features_demo.py | 12 ++++++------ pyproject.toml | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/examples/v0_4_3b2_features_demo.py b/docs/examples/v0_4_3b2_features_demo.py index 3b604c62..1032f346 100644 --- a/docs/examples/v0_4_3b2_features_demo.py +++ b/docs/examples/v0_4_3b2_features_demo.py @@ -333,18 +333,18 @@ async def main(): # Efficiency & Speed Demos print("\nšŸš€ EFFICIENCY & SPEED DEMOS") - # await demo_memory_dispatcher() - # await demo_streaming_support() - # await demo_content_scraping() + await demo_memory_dispatcher() + await demo_streaming_support() + await demo_content_scraping() # # LLM Integration Demos print("\nšŸ¤– LLM INTEGRATION DEMOS") - # await demo_json_schema_generation() - # await demo_llm_markdown() + await demo_json_schema_generation() + await demo_llm_markdown() # # Core Improvements print("\nšŸ”§ CORE IMPROVEMENT DEMOS") - # await demo_robots_compliance() + await demo_robots_compliance() await demo_proxy_rotation() if __name__ == "__main__": diff --git a/pyproject.toml b/pyproject.toml index 328438e9..38e1f89f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,6 +37,7 @@ dependencies = [ "rich>=13.9.4", "cssselect>=1.2.0", "httpx==0.27.2", + "fake-useragent>=2.0.3" ] classifiers = [ "Development Status :: 4 - Beta",