This is a live demonstration post for WiseLoop Web Grabber WordPress Plugin.
Below, in the red squares, are shown various extracted contents from different web site pages grabbed by this amazing WordPress Plugin using the provided “webgrab” shortcode.
Example 1: Very simple grabbing of first paragraph from the WordPress website
Shortcode: [ webgrab url='http://wordpress.org/about/' tag='{p class="intro"}']
URL "http://wordpress.org/about/" does not exist, is not readable or is protected against scraping.
Check if your IP address "212.146.85.23" has access permission to this URL.
Headers received:
Array
(
[0] => HTTP/1.1 301 Moved Permanently
[1] => Server: nginx
[2] => Date: Mon, 08 Aug 2022 01:54:51 GMT
[3] => Content-Type: text/html
[4] => Content-Length: 162
[5] => Connection: keep-alive
[6] => Location: https://wordpress.org/about/
[7] =>
[8] => HTTP/2 200
[9] => server: nginx
[10] => date: Mon, 08 Aug 2022 01:54:51 GMT
[11] => content-type: text/html; charset=UTF-8
[12] => vary: Accept-Encoding
[13] => strict-transport-security: max-age=360
[14] => x-olaf: ⛄
[15] => link: ; rel="https://api.w.org/"
[16] => link: ; rel="alternate"; type="application/json"
[17] => link: ; rel=shortlink
[18] => x-frame-options: SAMEORIGIN
[19] => x-nc: EXPIRED ord 2
[20] => content-encoding: br
[21] =>
[22] =>
)
Example 2: Complex grabbing with tags removal, string replacements and tag instance filtering
Shortcode: [ webgrab url='http://www.freewebsitetemplates.com' tag='{ul}' contains='images/templates' rtag1='{div class="option"' srch1='/images/templates/' repl1='http://www.freewebsitetemplates.com/images/templates/' srch2='/images/ads/templates/' repl2='http://www.freewebsitetemplates.com/images/ads/templates/']
Example 3: Requested by HammyHavoc
Shortcodes:
Getting MySpace friends number: [ webgrab url='http://www.myspace.com/psihamster' tag='span class="toolbarCount"' cache='0']
Getting Last.Fm plays: [ webgrab url='http://www.last.fm/user/DominarHammy' tag='span class="count"' cache='0']
URL "http://www.myspace.com/psihamster" does not exist, is not readable or is protected against scraping.
Check if your IP address "212.146.85.23" has access permission to this URL.
Headers received:
Array
(
[0] => HTTP/1.1 301 Moved Permanently
[1] => Server: NSX LB
[2] => Date: Mon, 08 Aug 2022 01:54:52 GMT
[3] => Content-Type: text/html
[4] => Content-Length: 179
[5] => Connection: keep-alive
[6] => Location: https://myspace.com/psihamster
[7] =>
[8] => HTTP/1.1 404 Not Found
[9] => Date: Mon, 08 Aug 2022 01:54:52 GMT
[10] => Content-Type: text/html; charset=utf-8
[11] => Transfer-Encoding: chunked
[12] => Connection: keep-alive
[13] => Vary: Accept-Encoding
[14] => Set-Cookie: persistent_id=pid%3Ddc36b2be-15cb-4cc9-8b0f-507092550de8%26llid%3D%26lprid%3D%26lltime%3D; domain=.myspace.com; path=/; expires=Sun, 03 Aug 2042 01:54:09 GMT; httpOnly
[15] => Set-Cookie: visit_id=ef74c140-54de-48c9-8e14-b60fdb6ed377; domain=.myspace.com; path=/; expires=Mon, 08 Aug 2022 02:24:09 GMT; httpOnly
[16] => Set-Cookie: beacons_enabled=true; domain=.myspace.com; path=/; expires=Mon, 08 Aug 2022 02:24:09 GMT
[17] => Set-Cookie: player=sequenceId%3D-1%26paused%3Dtrue%26currentTime%3D0%26volume%3D0.5%26mute%3Dfalse%26shuffled%3Dfalse%26repeat%3Doff%26mode%3Dqueue%26pinned%3Dfalse%26streamStartDateTime%3D%26at%3D360%26incognito%3Dfalse%26allowSkips%3Dtrue%26ccOn%3Dfalse; domain=.myspace.com; path=/; expires=Wed, 07 Sep 2022 01:54:09 GMT
[18] => X-Handling-Host: ash2-app202
[19] => X-TrackingId: 7366b150-8410-4139-9903-51fbde2a4e68
[20] => Cache-Control: no-cache
[21] => Strict-Transport-Security: max-age=31536000
[22] => X-Frame-Options: SAMEORIGIN
[23] => Content-Security-Policy: frame-ancestors 'self'
[24] => X-Response-Time: 31ms
[25] => Content-Encoding: gzip
[26] =>
[27] =>
)
Last.Fm plays:
URL "http://www.last.fm/user/DominarHammy" does not exist, is not readable or is protected against scraping.
Check if your IP address "212.146.85.23" has access permission to this URL.
Headers received:
Array
(
[0] => HTTP/1.1 301 Moved Permanently
[1] => Server: Varnish
[2] => Retry-After: 0
[3] => Location: https://www.last.fm/user/DominarHammy
[4] => Content-Length: 0
[5] => Accept-Ranges: bytes
[6] => Date: Mon, 08 Aug 2022 01:54:52 GMT
[7] => Via: 1.1 varnish
[8] => Connection: close
[9] => X-Served-By: cache-vie6353-VIE
[10] => X-Cache: HIT
[11] => X-Cache-Hits: 0
[12] => X-Timer: S1659923693.912842,VS0,VE0
[13] => X-Request-Category: page
[14] => X-LFM-Cacheable-Page: 0
[15] => Set-Cookie: X-UA-Device-Type=bot; max-age=60; secure; same-site=strict; Path=/
[16] => Set-Cookie: X-UA-Country-Code=RO; max-age=60; secure; same-site=strict; Path=/
[17] => Cache-Control: max-age=0, must-revalidate
[18] => Strict-Transport-Security: max-age=300
[19] =>
[20] => HTTP/2 200
[21] => server: nginx
[22] => content-type: text/html; charset=utf-8
[23] => content-security-policy: upgrade-insecure-requests;
[24] => content-security-policy-report-only: default-src https: 'unsafe-inline' 'unsafe-eval' wss: ;img-src https: data: blob: ; font-src https: data:; form-action https: http://www.last.fm; report-uri https://cbsi.report-uri.io/r/default/csp/enforce
[25] => x-pjax-url: https://www.last.fm/user/DominarHammy
[26] => etag: W/"15029c7d056d2d298dd80cf447b2b998"
[27] => x-frame-options: SAMEORIGIN
[28] => content-language: en
[29] => set-cookie: lfmanon=1; Path=/
[30] => set-cookie: not_first_visit=1; Path=/
[31] => set-cookie: sessionid=eyJfYXV0aF91c2VyX2hhc2giOiJkZWZhdWx0Iiwic2Vzc2lvbl9pZCI6ImNjN2FlZDBjLWZjN2EtNDY2Ny05NjliLWI1Y2M0NTgyNGFiMiJ9:1oKryn:OgQ7o4csdelZRNF4CVVE6Sm20P4; Domain=.last.fm; expires=Tue, 08-Aug-2023 01:54:53 GMT; HttpOnly; Max-Age=31536000; Path=/; Secure
[32] => content-encoding: gzip
[33] => via: 1.1 google, 1.1 varnish
[34] => accept-ranges: bytes
[35] => date: Mon, 08 Aug 2022 01:54:53 GMT
[36] => x-served-by: prod-lfm-web-86df9887f6-jkvgr, cache-vie6380-VIE
[37] => x-cache: MISS
[38] => x-cache-hits: 0
[39] => x-timer: S1659923693.995164,VS0,VE625
[40] => vary: Accept-Encoding, Accept-Language, Cookie
[41] => x-lfm-upstream: /user/DominarHammy
[42] => x-lfm-upstream-type: PASS
[43] => x-request-category: page
[44] => x-lfm-cacheable-page: 0
[45] => set-cookie: X-UA-Device-Type=bot; max-age=60; secure; same-site=strict; Path=/
[46] => set-cookie: X-UA-Country-Code=RO; max-age=60; secure; same-site=strict; Path=/
[47] => cache-control: max-age=0, must-revalidate
[48] => strict-transport-security: max-age=300
[49] =>
[50] =>
)
Example 4: Requested by danialhr
Shortcode: [ webgrab url='http://www.raymondphang.com/blog/2011/kok-keong-charmaine-actual-day-wedding' tag='{div id="post-' cache='0']
URL "http://www.raymondphang.com/blog/2011/kok-keong-charmaine-actual-day-wedding" does not exist, is not readable or is protected against scraping.
Check if your IP address "212.146.85.23" has access permission to this URL.
Headers received:
Array
(
[0] => HTTP/1.1 301 Moved Permanently
[1] => Date: Mon, 08 Aug 2022 01:57:53 GMT
[2] => Server: Apache
[3] => Expires: Wed, 11 Jan 1984 05:00:00 GMT
[4] => Cache-Control: no-cache, must-revalidate, max-age=0
[5] => X-Nitro-Cache: MISS
[6] => X-Nitro-Disabled: 1
[7] => X-Nitro-Disabled-Reason: 404
[8] => X-Redirect-By: WordPress
[9] => Upgrade: h2
[10] => Connection: Upgrade, Keep-Alive
[11] => Location: http://raymondphang.com/blog/2011/kok-keong-charmaine-actual-day-wedding
[12] => X-Endurance-Cache-Level: 2
[13] => X-nginx-cache: WordPress
[14] => Content-Length: 0
[15] => Keep-Alive: timeout=2, max=50
[16] => Content-Type: text/html; charset=UTF-8
[17] =>
[18] => HTTP/1.1 404 Not Found
[19] => Date: Mon, 08 Aug 2022 01:57:55 GMT
[20] => Server: Apache
[21] => Expires: Wed, 11 Jan 1984 05:00:00 GMT
[22] => Cache-Control: no-cache, must-revalidate, max-age=0
[23] => X-Nitro-Cache: MISS
[24] => X-Nitro-Disabled: 1
[25] => X-Nitro-Disabled-Reason: 404
[26] => Link: ; rel="https://api.w.org/"
[27] => Upgrade: h2
[28] => Connection: Upgrade, Keep-Alive
[29] => Vary: Accept-Encoding
[30] => Content-Encoding: gzip
[31] => X-Endurance-Cache-Level: 2
[32] => X-nginx-cache: WordPress
[33] => Content-Length: 22296
[34] => Keep-Alive: timeout=2, max=50
[35] => Content-Type: text/html; charset=UTF-8
[36] =>
[37] =>
)