$ npm install -g facebook-rescrape
Force the Facebook to scrape a page again
$ rescrape -h
Usage: rescrape [options] <file ...>
Options:
-V, --version output the version number
-t, --type <type> The type of url that will be processed can be "sitemap" or "url" (default: url)
-u, --url <url> The Url to be processed
-r, --replace <replace> A regex to replace some value
-g, --regex <regexp> The value to be replaced
-f, --filter <filter> Filter urls from a sitemap by this filter value
-s, --show Shows the Facebook response for each url
-h, --help output usage information
# eg for a single url:
$ rescrape -u http://yoursite.com/url-path/if-exists
# eg for a site map
$ rescrape -u https://yoursite.com/sitemap.xml -t sitemap
# eg filtering a url by pattern
$ rescrape -u https://yoursite.com/sitemap.xml -t sitemap -f only-urls-with-this
# will re-scrape just urls like https://yoursite.com/only-urls-with-this
# eg replacing part of url
$ rescrape -u https://yoursite.com/sitemap.xml -t sitemap -f only-urls-with-this -g http:\/\/www -r https://mx
# the http://www will be replaced by https://mx