Using the Linux shell to automatically top the sticker

Source: Internet
Author: User
Tags curl

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.