How to Copy Brand Name From Amazon Website.

sagar kathiriya

New Member
Joined
Dec 6, 2018
Messages
14
I'm a seller on Amazon. I get a list of top selling products weekly (webpage link). I want to get brand name of that product from amazon. Currently I Have to Do it Manually For Each and Every Product. Screenshot is attachment for reference purpose.

Sample Link : Ikea Adde Chair White Indoor/Outdoor Back Rest: Amazon.in: Home & Kitchen if you check this link then Brand Name is "Ikea". Just like that I want Brand Name For all my Link.

Can Anyone Help with That VBA & Macro Please.
 

Attachments

  • Untitled.png
    Untitled.png
    163.9 KB · Views: 41

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Hello

autom(AutoRecovered)nov20.xlsm
FGH
2https://www.amazon.in/dp/B07FVHZZTD/Brand: Ikeahttps://www.amazon.in/s/ref=bl_dp_s_web_0?ie=UTF8&search-alias=aps&field-keywords=Ikea
3https://www.amazon.in/dp/B07Y5DY5FXVisit the Flipco Storehttps://www.amazon.in/stores/Flipco/page/795FFADE-F2E4-416F-9A79-1E92C8F95EB2?ref_=ast_bln
4https://www.amazon.in/dp/B079GT2W44Visit the Santosha Decor Storehttps://www.amazon.in/stores/SANTOSHA+DECOR/page/C007BCA3-750F-4AEB-9A1D-D31AB31625C8?ref_=ast_bln
5https://www.amazon.in/dp/B07SWRMVCSVisit the Nilkamal Storehttps://www.amazon.in/stores/Nilkamal/page/BE0E30A1-2779-4434-8244-AB002A0225C3?ref_=ast_bln
6https://www.amazon.in/dp/B07GCL5V3ZBrand: MBTChttps://www.amazon.in/MBTC/b/ref=bl_dp_s_web_16081496031?ie=UTF8&node=16081496031&field-lbr_brands_browse-bin=MBTC
test


VBA Code:
Sub IE_event()
Dim iea As InternetExplorer, doc, search, i%
Set iea = CreateObject("InternetExplorer.Application")
iea.Visible = True
For i = 2 To Range("f" & Rows.Count).End(xlUp).row
    iea.navigate Cells(i, 6)
    Do Until Not iea.Busy
        DoEvents
    Loop
    Application.Wait Now + TimeValue("0:00:03")
    Set doc = iea.Document
    Set search = doc.getElementById("bylineInfo")
    Cells(i, 7) = search.innerText
    Cells(i, 8) = search.href
Next
End Sub
 
Upvote 0
Hello

autom(AutoRecovered)nov20.xlsm
FGH
2https://www.amazon.in/dp/B07FVHZZTD/Brand: Ikeahttps://www.amazon.in/s/ref=bl_dp_s_web_0?ie=UTF8&search-alias=aps&field-keywords=Ikea
3https://www.amazon.in/dp/B07Y5DY5FXVisit the Flipco Storehttps://www.amazon.in/stores/Flipco/page/795FFADE-F2E4-416F-9A79-1E92C8F95EB2?ref_=ast_bln
4https://www.amazon.in/dp/B079GT2W44Visit the Santosha Decor Storehttps://www.amazon.in/stores/SANTOSHA+DECOR/page/C007BCA3-750F-4AEB-9A1D-D31AB31625C8?ref_=ast_bln
5https://www.amazon.in/dp/B07SWRMVCSVisit the Nilkamal Storehttps://www.amazon.in/stores/Nilkamal/page/BE0E30A1-2779-4434-8244-AB002A0225C3?ref_=ast_bln
6https://www.amazon.in/dp/B07GCL5V3ZBrand: MBTChttps://www.amazon.in/MBTC/b/ref=bl_dp_s_web_16081496031?ie=UTF8&node=16081496031&field-lbr_brands_browse-bin=MBTC
test


VBA Code:
Sub IE_event()
Dim iea As InternetExplorer, doc, search, i%
Set iea = CreateObject("InternetExplorer.Application")
iea.Visible = True
For i = 2 To Range("f" & Rows.Count).End(xlUp).row
    iea.navigate Cells(i, 6)
    Do Until Not iea.Busy
        DoEvents
    Loop
    Application.Wait Now + TimeValue("0:00:03")
    Set doc = iea.Document
    Set search = doc.getElementById("bylineInfo")
    Cells(i, 7) = search.innerText
    Cells(i, 8) = search.href
Next
End Sub
Thank you so much.. ?
 
Upvote 0
Hello

autom(AutoRecovered)nov20.xlsm
FGH
2https://www.amazon.in/dp/B07FVHZZTD/Brand: Ikeahttps://www.amazon.in/s/ref=bl_dp_s_web_0?ie=UTF8&search-alias=aps&field-keywords=Ikea
3https://www.amazon.in/dp/B07Y5DY5FXVisit the Flipco Storehttps://www.amazon.in/stores/Flipco/page/795FFADE-F2E4-416F-9A79-1E92C8F95EB2?ref_=ast_bln
4https://www.amazon.in/dp/B079GT2W44Visit the Santosha Decor Storehttps://www.amazon.in/stores/SANTOSHA+DECOR/page/C007BCA3-750F-4AEB-9A1D-D31AB31625C8?ref_=ast_bln
5https://www.amazon.in/dp/B07SWRMVCSVisit the Nilkamal Storehttps://www.amazon.in/stores/Nilkamal/page/BE0E30A1-2779-4434-8244-AB002A0225C3?ref_=ast_bln
6MBTC Familo Stripe Folding Chair in Black: Amazon.in: Home & KitchenBrand: MBTChttps://www.amazon.in/MBTC/b/ref=bl_dp_s_web_16081496031?ie=UTF8&node=16081496031&field-lbr_brands_browse-bin=MBTC
test


VBA Code:
Sub IE_event()
Dim iea As InternetExplorer, doc, search, i%
Set iea = CreateObject("InternetExplorer.Application")
iea.Visible = True
For i = 2 To Range("f" & Rows.Count).End(xlUp).row
    iea.navigate Cells(i, 6)
    Do Until Not iea.Busy
        DoEvents
    Loop
    Application.Wait Now + TimeValue("0:00:03")
    Set doc = iea.Document
    Set search = doc.getElementById("bylineInfo")
    Cells(i, 7) = search.innerText
    Cells(i, 8) = search.href
Next
End Sub
I'm getting error of User-defined-type not defined. please see screenshot.
 

Attachments

  • Untitled (1).png
    Untitled (1).png
    160.2 KB · Views: 14
Upvote 0
Check if you have a VBA reference to the Microsoft Internet Controls library.
 
Upvote 0
I have added that library now, but i'm getting another error for blocked variable is not set. can you help me with that and set block variable... some product which are now unavailable are getting error i have attached screenshot..
 

Attachments

  • Untitled.png
    Untitled.png
    208.9 KB · Views: 15
  • Untitled1.png
    Untitled1.png
    230.3 KB · Views: 15
Upvote 0
New version:

VBA Code:
Sub IE_event()
Dim iea As InternetExplorer, doc, search, i%, v
Set iea = CreateObject("InternetExplorer.Application")
iea.Visible = True
For i = 2 To Range("f" & Rows.Count).End(xlUp).row
    iea.navigate Cells(i, 6)
    Do Until Not iea.Busy
        DoEvents
    Loop
    Application.Wait Now + TimeValue("0:00:03")
    Set doc = iea.Document
    Set search = doc.getElementById("bylineInfo")
    On Error Resume Next
    v = search.innerText
    If Err.Number = 0 Then
        Cells(i, 7) = search.innerText
        Cells(i, 8) = search.href
    Else
        Cells(i, 7) = "Error #" & Err.Number
    End If
Next
End Sub
 
Upvote 0

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top