This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 💡 NOTE: This only works if you are pretend to using `Django Console` feature in Pycharm | |
| # Paste codes below into `Build, Execution, Deployment > Console > Django Console > Starting Script` | |
| # requirements: `django_extensions`, `IPython` | |
| import sys | |
| import django | |
| from IPython.core.getipython import get_ipython | |
| from django_extensions.management.notebook_extension import load_ipython_extension |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const timer = ms => new Promise(res => setTimeout(res, ms)); | |
| // Unretweet normally | |
| const unretweetTweet = async (tweet) => { | |
| await tweet.querySelector('[data-testid="unretweet"]').click(); | |
| await timer(250); | |
| await document.querySelector('[data-testid="unretweetConfirm"]').click(); | |
| console.log('****// Unretweeted Successfully //****') | |
| } |
OlderNewer