Ruby on Rails Saturday, July 28, 2018



On Saturday, July 28, 2018 at 10:43:37 AM UTC-4, Colin Law wrote:
On 28 July 2018 at 15:32, fugee ohu <fuge...@gmail.com> wrote:


On Saturday, July 28, 2018 at 2:53:59 AM UTC-4, Colin Law wrote:
On 28 July 2018 at 00:15, fugee ohu <fuge...@gmail.com> wrote:
how do i webscrape aliexpress? i learned how to get a document object class Nokogiri::HTML containing the full html but there's no tables only ul and li selectors and i'm having trouble with that

Give us an example of a page you are scraping and an element you can't find.

Colin


Thanks Colin Made progress so now I have the <ul> list i want in an object I named ul Not sure how I'm gonna proceed My goal is to import to database tables  It's a few related tables instead of just one products table I don't think you still wanna see all that html do you?

If you are now seeing the data then no I don't want to see it.  Your original problem is fixed.

Colin


I could read the item description on the page in the browser but couldn't find it searching the source I'm new to using the browser debugging console I never had any reason to use it before So I couldn't find the description I saw on the page in the source so I right clicked on the description and selected inspect This is what I got: 
<li class="property-item" id="product-prop-19204" data-attr="272" data-title="Wireless" data-spm-anchor-id="2114.12010108.0.i4.7c48412aEPVyt2">
                        <span class="propery-title">Cord Length (m):</span>
                        <span class="propery-des" title="Wireless">Wireless</span>
                    </li>
What can I do with this?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a73bb316-d26e-42c1-8abe-3dc1585f2fc1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment