spiderling | Browse html pages with php , selenium and phantomjs | Frontend Framework library
kandi X-RAY | spiderling Summary
kandi X-RAY | spiderling Summary
This is a library for crawling web pages with curl and PhantomJS. Heavily inspired by Capybara. It's a major component in phpunit-spiderling for integration level testing. It can handle AJAX requests easily and allows switching from fast PHP-only drivers to JavaScript-enabled like PhantomJS easily, without modifying the code.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of spiderling
spiderling Key Features
spiderling Examples and Code Snippets
use Openbuildings\Spiderling\Page;
$page = new Page();
$page->visit('http://example.com/the-form');
$page
->fill_in('Name', 'New Name')
->fill_in('Description', 'some description')
->click_button('Submit');
// This will return t
Name:
Description:
Some text
use Openbuildings\Spiderling\Page;
$page = new Page();
$page->visit('http://example.com/the-form');
$page
Name:
Description:
Some text
use Openbuildings\Spiderling\Page;
$page = new Page();
$page->visit('http://example.com/the-form');
$page
Community Discussions
Trending Discussions on spiderling
QUESTION
I have a test project using a library supporting crawl(openbuilding spiderling). The problem is when i crawl on url "https://examlple.com". This page content a iframe from "https://iframe.com".
I want to get the element p(s) inside the iframe. But i now only can get those elements by visit iframe.com. I want to know that is there anyway to get element p even when i don't visit iframe.com, such as wait for ifame loaded. Thank you!
...ANSWER
Answered 2018-Jan-27 at 07:55No, you cannot spider an iframe
's contents from the parent page. The closest you can do is note the URL of the iframe
and then go off and independently spider it.
Think of an iframe
as a sandboxed and protective container that only lets you visually view its contents and nothing more - no spidering or talking to it (unless you own the page and are working with JavaScript Window.postMessage()
etc.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install spiderling
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page