SmugMug 的變化似乎炸毀了 pysmug (changes at SmugMug appear to have blown up pysmug)


問題描述

SmugMug 的變化似乎炸毀了 pysmug (changes at SmugMug appear to have blown up pysmug)

還有其他人正在努力解決感恩節前一周在 SmugMug 進行的更改,這些更改導致在使用 pysmug 和 Django 時出現“無效用戶”錯誤?

有人建議他們現在需要 _su cookie,但在我看來,pysmug 中使用的 pycurl 應該可以正確處理。

登錄時不會發生錯誤,所以我假設錯誤消息“無效用戶”是假的。


## 參考解法 #### 方法 1:

For anyone else having pysmug trouble the following patch fixed the issue:

pysmug's implementation of pycurl does not set a cookie jar. To fix the problem, add the following two lines to smugmug.py at line number #143 and reinstall:

c.setopt(c.COOKIEFILE, 'cookies.txt')
c.setopt(c.COOKIEJAR, 'cookies.txt')

You may want to set an absolute path to cookies.txt to make sure it's getting written to a folder with the necessary permissions, i.e. /tmp/

(by wmfox3wmfox3)

參考文件

  1. changes at SmugMug appear to have blown up pysmug (CC BY‑SA 3.0/4.0)

#pycurl #Django






相關問題

python中的握手失敗(_ssl.c:590) (HandShake Failure in python(_ssl.c:590))

SmugMug 的變化似乎炸毀了 pysmug (changes at SmugMug appear to have blown up pysmug)

pycurl/curl 不遵循 CURLOPT_TIMEOUT 選項 (pycurl/curl not following the CURLOPT_TIMEOUT option)

需要幫助從 curl 遷移到 pycurl (need help with moving from curl to pycurl)

Tornado 的 AsyncHTTPClient 從 1.2 升級到 2.0 後不再工作 (Tornado's AsyncHTTPClient no longer works after upgrade to 2.0 from 1.2)

PyCurl 替代方案,libcurl 的 pythonic 包裝器? (PyCurl alternative, a pythonic wrapper for libcurl?)

使用 Pycurl 獲取 HTML (Getting HTML with Pycurl)

如果請求的數據有時被壓縮,有時不被壓縮,如何使用 pycurl? (how to use pycurl if requested data is sometimes gzipped, sometimes not?)

在 MacOS 上安裝 pycurl。(鏈接時 ssl 後端(無/其他)與編譯時 ssl 後端(openssl)不同) (Installing pycurl on MacOS. (link-time ssl backend (none/other) is different from compile-time ssl backend (openssl)))

Python 3.7:在 Windows 10 上安裝 pycurl (Python 3.7: pycurl installation on Windows 10)

Windows 機器在 Thonny 上安裝 pycurl 模塊 (Windows machine Installing pycurl module on Thonny)

當 python 線程在網絡調用(HTTPS)中並且發生上下文切換時會發生什麼? (What happens when the python thread is in network call(HTTPS) and the context switch happens?)







留言討論