How to scrape Quantity

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.

This topic has 10 replies, 2 voices, and was last updated 2 years, 1 month ago by Szabi – CodeRevolution.

Viewing 10 reply threads
  • Author
    Posts
    • #5991


      toan.ngo1
      Participant
      Beginner
      Post count: 5

      I don’t know how to pull  in quantity from this website and where to place the  value into the  crawlomatic settings.

      Link: https://thejerseysource.com/collections/pro-football/products/jason-witten-autographed-dallas-cowboys-f-s-flat-white-speed-helmet-beckett-auth-blue

      Also, if the item runs out of stock on the  source website, how do I update my website to be out of stock?

    • #6000


      Szabi – CodeRevolution
      Keymaster
      Post count: 4577

      Hello,

      1. To scrape multiple products from the site you linked, I recommend you use the sitemap scraping feature of the plugin. Please check this tutorial video for info on this: https://www.youtube.com/watch?v=xi1S1093ubo – also, in the case of the above site, you can use the below settings in the plugin:

      Scraper Start (Seed) URL / Keywords
      https://thejerseysource.com/sitemap_products_1.xml?from=1866418323554&to=4374125641826

      Seed Page Crawling Query Type:
      Sitemap

      Seed Page Crawling Query String:
      https://thejerseysource.com/products/

       

      You can find the full list of available sitemaps for this site, here: https://thejerseysource.com/sitemap.xml

      2. Regarding product updating, you can check the ‘Update Post If It Is Already Posted’ checkbox in the rule settings of the plugin, to update products which were already scraped to your site.

      I hope this info helps.

      Regards, Szabi – CodeRevolution.

    • #6001


      toan.ngo1
      Participant
      Beginner
      Post count: 5

      So I got everything working, but just need to find a way to pull in the quantity field. Can you help me with just this portion. Everything else is working for me!

    • #6003


      Szabi – CodeRevolution
      Keymaster
      Post count: 4577

      Hello,

      I am glad to hear that it works.

      I am not sure if I understand which part of the page do you want to scrape in the ‘Quantity’ field. Can you highlight it, please, in a screenshot of this page: https://thejerseysource.com/collections/pro-football/products/jason-witten-autographed-dallas-cowboys-f-s-flat-white-speed-helmet-beckett-auth-blue

      Thank you.

      Regards.

    • #6004


      toan.ngo1
      Participant
      Beginner
      Post count: 5

      Is there a way to get the quantity in stock, what we don’t want to happen is to over sell. With this in mind, would it be good to default to 1 if it is found ? If so how do we do default to 1 and then on the next days scan if it’s there add 1 back.

    • #6012


      Szabi – CodeRevolution
      Keymaster
      Post count: 4577

      Scraping stock info is possible only if this data is displayed on the page which you are scraping. However, in case of the product you linked I don’t see this info added in the page: https://thejerseysource.com/collections/pro-football/products/jason-witten-autographed-dallas-cowboys-f-s-flat-white-speed-helmet-beckett-auth-blue

       

    • #6026


      toan.ngo1
      Participant
      Beginner
      Post count: 5

      Ok. Would it be possible to scrape it in and auto assign 1 in the stock field?

       

      If I undeerstand the update feature correctly, If the  other website no longer lists it, the scraping software would check to see if it is live, if not, remove it it from Woo commerce?

    • #6027


      toan.ngo1
      Participant
      Beginner
      Post count: 5

      Also, when I run the job, I selected the Woocommerce category and when I click save it removes the category tag. I have attached a screenshot to show you that I have selected Baseball Photos, but after I hit save and run, you can see the category is now blank.

      Attachments:
      You must be logged in to view attached files.
    • #6033


      Szabi – CodeRevolution
      Keymaster
      Post count: 4577

      Hello,

      Currently the plugin is not deleting the product, if it was not able to find it during rescraping. This feature is not yet implemented in the plugin. I noted your suggestion, will think on this for upcoming updates for the plugin.

      Regarding the category addition for products, please send me temporary admin login credentials to your site and I check on this issue, as the plugin should assign the category to the products. My email is kisded@yahoo.com

      Regards, Szabi – CodeRevolution.

    • #6036


      toan.ngo1
      Participant
      Beginner
      Post count: 5

      Sent – Thank you!

    • #6055


      Szabi – CodeRevolution
      Keymaster
      Post count: 4577

      Hello,

      I updated the plugin on your site and fixed the category issue, please check.

      Regards.

Viewing 10 reply threads

The topic ‘How to scrape Quantity’ is closed to new replies.