陳昀馨

@SealSeal

Joined on Mar 22, 2021

  • 這邊是噗浪機器人api2.0的製作教學文,包含回應,按愛心功能,還有簡易部屬,有興趣的人歡迎看看,若有錯誤也歡迎指教:D 首先先創一個新的噗浪帳號 ![](https://i.imgur.com/3uvAyeo.png =500x) 創建完成後,點這裡,按下「註冊新的應用服務」, 接下來的步驟這邊很詳細,就不贅述了XD,我的機器人程式也參考了這個連結,在這裡你會獲得四個參數,請記起來 App Key App Secret
     Like 5 Bookmark
  • +karma用噗浪機器人! 加好友後會自動回加!會回噗!可以聊天(要tag機器人)~也會進村(如果機器人沒有理你可能是漏噗了,就tag機器人喊進村就行!)~ Basically, to increase your karma's increase speed. When you add her as friend, will automatically be added as friend too. 使用須知/Notice: 機器人帳號權限等同於一般使用者帳號,所以加機器人好友後如果開發者登入,會看到友限貼文,雖開發者不會隨時登入機器人帳號,但有時開發新功能還是會登入機器人帳號發公告,有時為了debug也會登入機器人帳號,若在意者請不要使用機器人喔,謝謝~~ 如果是單則噗不想讓機器人看到,可以鎖噗,機器人會和一般帳號一樣,就沒有權限看噗了! 在噗文裡加上--noreply的話,機器人不會回應該噗,如果不想被回應可以用~
     Like  Bookmark
  • 使用pytest而非django原生test理由(from官方文件) Why would I use this instead of Django’s manage.py test command? pytest提供了比django test還多的功能 Running the test suite with pytest offers some features that are not present in Django’s standard test mechanism: 比較少麻煩,不需要import unittest,創建子類別,可以直接寫一般的function Less boilerplate: no need to import unittest, create a subclass with methods. Just write tests as regular functions. 使用fixtures來管理依賴 Manage test dependencies with fixtures. 多進程執行測試,加快速度
     Like  Bookmark