• mooball

    (@mooball)


    Im using the latest WP and latest WP Web Scraper and PHP 5.3.3.

    But not matter what I scrape I always get an empty response. I see no obvious errors.

    This is an example of a trivial code that does not work.

    [wpws url="https://www.mooball.com" query="title" ]

    What am I doing wrong? how do I resolve this?

    https://www.ads-software.com/plugins/wp-web-scrapper/

Viewing 5 replies - 1 through 5 (of 5 total)
  • rocketsprocket

    (@rocketsprocket)

    Going to the URL shows there’s not actually a “title”
    try [wpws url=”https://www.mooball.com” query=”.project”] and you’ll see that the element with the class=”project” is pulled. Remember to include the . before the class as it won’t work without the period.

    Thread Starter mooball

    (@mooball)

    @rocketsprocket thanks for the help.

    There is a title on that page but still
    [wpws url=”https://www.mooball.com” query=”.project”] also returns nothing as does
    [wpws url=”https://www.mooball.com” query=”#projects” ]
    [wpws url=”https://www.mooball.com” query=”body” ]
    and every possible variation I can think of.

    Not one single query has ever returned a response. On this or any other domain.

    rocketsprocket

    (@rocketsprocket)

    [wpws url=”https://www.mooball.com” query=”.project”] returns a result for me. What are your settings in the plugin? I have
    Enable shortcode in posts, pages/Enable shortcode in widgets/Enable template tag all checked and ‘display error handling’ turned on.
    I’m picking you are using a shortcode but haven’t checked ‘enable shortcode in posts, pages’ checked.
    My shortcode has been used in a widget.

    Thread Starter mooball

    (@mooball)

    Settings:
    Enable WP Web Scraper – all 3 turned on
    Error Handling: Display error details
    Ive played with various user agents but no sign of any impact
    Timeout set to 10 seconds
    Cache to 0s

    Im not getting any response in the sandbox so Ive not even bothered to do much testing with the short code but if I do I see nothing.

    In the source code I see

    <div class="wpb_wrapper">
    	<div class="wpb_text_column wpb_content_element ">
    		<div class="wpb_wrapper">
    
    <!--
     Start of web scrap (created by wp-web-scraper)
     Source URL: https://www.mooball.com
     Query: .project (cssselector)
     Other options: Array
    (
        [headers] =>
        [cache] => 0
        [useragent] =>
        [timeout] => 10
        [on_error] => error_show
        [output] => html
        [glue] => 
    
        [eq] =>
        [gt] =>
        [lt] =>
        [query_type] => cssselector
        [remove_query] =>
        [remove_query_type] => cssselector
        [replace_query] =>
        [replace_query_type] => cssselector
        [replace_with] =>
        [basehref] => 1
        [a_target] =>
        [callback_raw] =>
        [callback] =>
        [debug] => 1
        [charset] => UTF-8
        [url] => https://www.mooball.com
        [query] => .project
        [urldecode] => 1
        [querydecode] => 0
    )
    -->
    Error parsing: Query returned empty response
    <!--
     End of web scrap
     WPWS Cache Control: Remote-fetch via WP_Http
     Computing time: 0.0564 seconds
    -->
    
    		</div>
    	</div>
    </div>

    Thread Starter mooball

    (@mooball)

    Sorry I should mention I do see “Error parsing: Query returned empty response” when error display turned on.

    It seems to me that the problem must be something to do with my hosting environment. I would assume that this is not a bug in the product. So what Im looking for is advice on how I debug this and get to the cause.

    Ive checked my PHP version and it seems fine but should I be doing some raw php commands to test my environment? Im happy to try to debug this but I need a few directions as to where to start.

    TIA

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘output empty always’ is closed to new replies.