Issue with some websites

This topic is: resolved

 

Thank you for contacting me. Please note that I live in the GMT+3 time zone - responses might be delayed by this.

Viewing 4 reply threads
  • Author
    Posts
    • #5819


      teddychu2001
      Participant
      Post count: 9

      <span data-sheets-formula-bar-text-style=”font-size:13px;color:#000000;font-weight:normal;text-decoration:none;font-family:’Arial’;font-style:normal;text-decoration-skip-ink:none;”>1. May I know how to strip only all the </span>bit.ly<span data-sheets-formula-bar-text-style=”font-size:13px;color:#000000;font-weight:normal;text-decoration:none;font-family:’Arial’;font-style:normal;text-decoration-skip-ink:none;”> links in </span>https://www.cryptonewsz.com/crypto-fest-2022-looking-up-to-post-winter-opportunities/

      2. Featured image can’t be scraped in https://codecondo.com/10-in-demand-digital-marketing-freelancing-job-skills-women-should-learn/ Is there any special setting to get the featured image of this link?

    • #5820


      teddychu2001
      Participant
      Post count: 9

      For some reasons, the format of the first post looks strange. Let me post the questions again.

      1. May I know how to strip only the bit.ly links in https://www.cryptonewsz.com/crypto-fest-2022-looking-up-to-post-winter-opportunities/

      2. Featured image can’t be scraped in https://codecondo.com/10-in-demand-digital-marketing-freelancing-job-skills-women-should-learn/ Is there any special setting to get the featured image of this link?

    • #5821


      Szabi – CodeRevolution
      Keymaster
      Post count: 4205

      Hello,

      First of all, thank you for your purchase.

       

      1. To remove only bit.ly links from scraped text, please use:

      Run Regex On Content:
      “https:\/\/bit\.ly\/([^”]*?)”

       

      2. To extract the featured image from this source, please use:

      Featured Image Query Type:
      Regex – First Match

      Featured Image Query String:
      #<div class=”featured-image cover” style=”background: url\(([^)]*?)\);”>#i

       

      Let me know if this helped.

      Regards, Szabi – CodeRevolution.

    • #5834


      teddychu2001
      Participant
      Post count: 9

      Thanks for your great help. For question 2, I am just curious to know why the featured image can’t be auto detected for that particular website but need to use the query string?

    • #5837


      Szabi – CodeRevolution
      Keymaster
      Post count: 4205

      Yes, the plugin is able to automatically detect the featured images for posts scraped from most sites, however, from this specific website, you need to enter the query, as it has the featured image added only in an unusual and specific part of the website code.

      So, this will not be needed to be added in most cases.

Viewing 4 reply threads

The topic ‘Issue with some websites’ is closed to new replies.