Click Manual crawler via curl
-
I need to set a cron to manually run crawler at specific times, I can login and get cookies to my wordpress with this:
curl –data “log=My_Username&pwd=My_Pass” https://my_wordpress_site.com/wp-login.php -c ~/wpcookie.txt
but when I run :
curl “https://my_wordpress_site.com/wp-admin/admin.php?page=litespeed-crawler&LSCWP_CTRL=crawler&LSCWP_NONCE=ed5c23ebe3&litespeed_type=start” -b ~/wpcookie.txtIt wont trigger a manual crawl, I believe its the LSCWP_NONCE value, how do I get it?
Any helps?Edit:
So I managed to get LSCWP_NONCE with this command and run the above command with that but still it not trigger a manual crawl
LSCWP_NONCE=$(curl -b wpcookie.txt -s ‘https://my_wordpress_site.com/wp-admin/admin.php?page=litespeed-crawler’ | grep -oP ‘(?<=name=”LSCWP_NONCE” value=”)[^”]+’)
- The topic ‘Click Manual crawler via curl’ is closed to new replies.