Skip to content

Search is very slow and makes cpu usage go up high #461

Open
@robochopbg

Description

@robochopbg

🛑 DO NOT REMOVE OR SKIP THIS ISSUE TEMPLATE 🛑

Issues with incomplete or missing information will be closed automatically.


🐞 Bug Description

Provide a clear and concise description of the bug.

Upgraded to the latest version.
Now when running pytubefix Search, it's now extremely slow at returning resuls and makes cpu usage go up very high.

In the previous version 8.8.1 searching was amazingly fast now the latest version is painfully slow.

🔢 Code Snippet

Include the minimal code snippet that reproduces the issue.

Search(query, use_po_token=True)

Simple search, query is a string

🎯 Expected Behavior

Describe what you expected to happen instead of the observed behavior.
Upgrade from version 8.8.1 to the latest as lately there have been many youtube Keyerrors.
But now the latest version is not working as expected

📸 Screenshots or Logs


🖥️ Environment Details

Fill in the details below about your setup:

  • Operating System: [e.g., Windows 10, macOS Monterey]
  • Python Version: [e.g., 3.9.7]
  • Pytubefix Version: [e.g., 1.2.3]
    Window 10 64bit
    Python - 3.10
    pytubefix - 8.12.3

📋 Additional Context

Add any additional information or context that might help us resolve the issue.


🚀 Next Steps

Once submitted, we will triage the issue. Make sure to respond to follow-up questions to keep the process smooth.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status

    waiting

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions