In the forum above Post asked what things, once not top, the post on the second sank, but really do not want to go to the top every moment, how to do? The following shows how to use the shell's crontab to implement automatic top-pasting.
Gossip not much to say, take the watercress as an example-
1:
Open the Douban page with chrome:
2:
Use right-click-review element or press F12 directly to open the Review element interface:
3:
Write whatever you want, then click "Add to"
You can see that the network interface of the review element has many links above, the main thing to see is this add_comment:
4:
Right-click on the add_comment and select Copy as CURL:
5:
Open Notepad, paste:
6:
Now, open the shell and write the script file up.sh:
Vim up.sh
#!/bin/bashcurl ........ //将刚才记事本中的内容复制到这里
chmod +x up.sh
7:
Well, now that you execute the following script file, you can find the watercress:
Use Crontab for timed publishing
Set the top once every 50 minutes (because the watercress time is too short, there is a verification code)
vim crontab.txt*/50 * * * * ./up.shcrontab crontab.txt
View with Crontab-l:
Using the Linux shell to automatically top the sticker