Comments (7)
Can you post your code?
PS: Repinning that often will get you account suspended.
from py3-pinterest.
I surround uploadin_pin call with try catch and now I getting following error.
HTTPSConnectionPool(host='www.pinterest.com', port=443): Read timed out. (read timeout=None)
Now I try to upload one image every couple of minute, and every second or third time I getting timeout error.
I call auth once at script start, and later call upload method of class Uplaoder every couple of minutes.
`
class Uploader:
def init(self):
self._pinterest = None
def auth(self, email, password, username):
self._pinterest = Pinterest(email = email, password = password, username = username, cred_root = './config')
try:
user_profile = self._pinterest.get_user_overview()
except HTTPError as e:
self._pinterest.login()
try:
user_profile = self._pinterest.get_user_overview()
except HTTPError as ex:
print(ex)
def uploadImage(self, boardId, image):
try:
pinResponse = self._pinterest.upload_pin(board_id = boardId,
section_id = None,
image_file = image.getFilePath(),
description = image.getDescription(),
title = image.getTitle(),
link = image.getLink())
print(pinResponse)
return True
except ReadTimeout as e:
print(e)
except HTTPError as e:
print(e)
return False
def getBoards(self, username):
return self._pinterest.boards(username = username)
`
from py3-pinterest.
A similar problem. At first everything works fine, but then the pins stop being created
Here is the piece of code responsible for this
i = 1
while i < len(link_list):
link = link_list[i]
image = image_list[i]
title = title_list[i]
print(link, image, title, sep=' ')
try:
pin = pinterest.pin(
board_id= board,
image_url = image,
description = title,
title = title,
link = link)
print('COOL!!')
except:
print('FOO!!')
pass
i += 1
time.sleep(randint(60,120))
from py3-pinterest.
Are you by any change using proxies?
from py3-pinterest.
No, I don't use proxies
from py3-pinterest.
No. Me nether.
from py3-pinterest.
To me it seems, these are random outages by Pinterest, it could be also you had pinned too much and they have some sort of protection. Try to stay below 50-60 pins a day per account. And max 5 accounts per IP. That should be safe enough.
Also keep in mind that new and small accounts are more likely to be locked, once the account get around 10k followers and its 6+ months older it will be less likely to get locked
from py3-pinterest.
Related Issues (20)
- pin method add support for pin_note HOT 2
- 250 pin limit on boards HOT 1
- 401 Client Error: Unauthorized for url HOT 4
- Pinning a photo fails with complete HTML-Javascript output from pinterest.com
- Can't post a new pin HOT 3
- Issue creating pins HOT 1
- how search by image in visual search ?
- WebDriver login error HOT 1
- HTTPError: 403 Client Error HOT 1
- Issues with login? Here's the fix. HOT 1
- Bad request for url - Can't create pins HOT 3
- On my i386 pc I can no longer use chromium because of sse3 or chrome
- get_board_sections only returns default 25 sections
- 404 Client Error: Not Found for url: https://www.pinterest.com/resource/PinResource/create/ HOT 1
- There is no [win64] chromedriver "latest" for browser google-chrome "114.0.5735.248" in cache
- upload_pin() and pin() not working
- Fail to login due to language of web driver does not change HOT 2
- Error on login
- Still active/working? HOT 4
- Another Error on login HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from py3-pinterest.