Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

name 'request' is not defined #4

Open
baarathsrinivas opened this issue Dec 26, 2024 · 1 comment
Open

name 'request' is not defined #4

baarathsrinivas opened this issue Dec 26, 2024 · 1 comment

Comments

@baarathsrinivas
Copy link

Traceback (most recent call last):
File "E:\code\amazon-scraper\main.py", line 1, in
from src import Amazon
File "E:\code\amazon-scraper\src_init_.py", line 1, in
from .amazon_scraper import Amazon
File "E:\code\amazon-scraper\src\amazon_scraper.py", line 5, in
from .search import FAILED_DUE_TO_CREDITS_EXHAUSTED, FAILED_DUE_TO_NO_KEY,FAILED_DUE_TO_NOT_SUBSCRIBED, FAILED_DUE_TO_UNKNOWN_ERROR, get_product, search
File "E:\code\amazon-scraper\src\search.py", line 94, in
@request(**default_request_options)
NameError: name 'request' is not defined. Did you mean: 'requests'?

@baarathsrinivas
Copy link
Author

adding following import statement worked for me
from botasaurus.request_decorator import *

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant