Skip to content

Improve Pinterest scrapper debugging and error handling#28

Open
abeneer wants to merge 3 commits into
shaikhsajid1111:masterfrom
abeneer:fix/pinterest-country
Open

Improve Pinterest scrapper debugging and error handling#28
abeneer wants to merge 3 commits into
shaikhsajid1111:masterfrom
abeneer:fix/pinterest-country

Conversation

@abeneer
Copy link
Copy Markdown
Contributor

@abeneer abeneer commented Dec 26, 2025

Replaces hardcoded/encoded Pinterest request URL with a cleaner requests.get(., params=.) approach.
Add --debug mode to print final URL, status code, content-type and a response snippet for easier troubleshooting.
Improves resilience by safely parsing JSON using .get() and returning structured error output instead of a generic failure message.
Observed Pinterest can return 403 (“Invalid Resource Request”)—debug output makes this clear.

Copy link
Copy Markdown
Owner

@shaikhsajid1111 shaikhsajid1111 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good to me but can you paste some output which you're getting?. Thanks!

@abeneer
Copy link
Copy Markdown
Contributor Author

abeneer commented Dec 26, 2025

@shaikhsajid1111 Hey, I’ve opened this PR to improve Pinterest scraper debugging + error handling.
Could you please review and merge if it looks good?

@abeneer
Copy link
Copy Markdown
Contributor Author

abeneer commented Dec 29, 2025

Hey bro, this is the output I'm getting now...

Screenshot 2025-12-29 at 22 20 45

(.venv) abner@Mac social-media-profile-scrapers % python pinterest.py
Name: Joy Cho / Oh Joy!
Bio: You are signed out
Sign in to get the best experience
Continue with email
By continuing, you agree to Pinterest's Terms of Service and acknowledge you've read our Privacy Policy. Notice at collection.
Followers: Not available

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

Successfully merging this pull request may close these issues.

2 participants