sudheer-ranga / aliexpress-product-scraper

Get Aliexpress product details as a json response including feedbacks, variants, shipping info, description, images, etc.,
MIT License
231 stars 88 forks source link

Json response invalid #32

Open desaivishal11 opened 2 years ago

desaivishal11 commented 2 years ago

When we run your example code, we get Json response with properties not covered using quote.

Which is invalid json.

{ title: 'Floral Print Dress Loose Casual Dress Women Summer Robe Boho Chic Loose Dress Fashion Long Sleeve Short mini Dress Elegant', categoryId: 200000347, productId: 3256803598798951, totalAvailableQuantity: 524, description: '

\n' + '
\n' + '
 
\n' + '\n' + '

 

\n' + '\n' + '


\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + '
\n' + ' 

\n' + '\n' + '

 

\n' + '
\n' + '
\n' + '\n' + '

 

\n' + '
\n' + '\n' + '\n', orders: 79, storeInfo: { name: 'Moor666 Store', companyId: 1118185838, storeNumber: 1101976886, followers: 99, ratingCount: 162, rating: '99.4%' }, ratings: { totalStar: 5, averageStar: '5.0', totalStartCount: 30, fiveStarCount: 29, fourStarCount: 1, threeStarCount: 0, twoStarCount: 0, oneStarCount: 0 }, images: [ 'https://ae01.alicdn.com/kf/S9aa59df1476745f7922c3c8fd77767e7v/Floral-Print-Dress-Loose-Casual-Dress-Women-Summer-Robe-Boho-Chic-Loose-Dress-Fashion-Long-Sleeve.jpg', 'https://ae01.alicdn.com/kf/Sd538d3eddf4b4de0b02e62ec55f29355O/Floral-Print-Dress-Loose-Casual-Dress-Women-Summer-Robe-Boho-Chic-Loose-Dress-Fashion-Long-Sleeve.jpg', 'https://ae01.alicdn.com/kf/S83c9941a57364978ba01dafa38a7a84aV/Floral-Print-Dress-Loose-Casual-Dress-Women-Summer-Robe-Boho-Chic-Loose-Dress-Fashion-Long-Sleeve.jpg', 'https://ae01.alicdn.com/kf/Sefcab7c24e164827b0b846ff632a5cb9P/Floral-Print-Dress-Loose-Casual-Dress-Women-Summer-Robe-Boho-Chic-Loose-Dress-Fashion-Long-Sleeve.jpg', 'https://ae01.alicdn.com/kf/S9f1e90eb2de145df97f93fa01d330347v/Floral-Print-Dress-Loose-Casual-Dress-Women-Summer-Robe-Boho-Chic-Loose-Dress-Fashion-Long-Sleeve.jpg', 'https://ae01.alicdn.com/kf/S211130b7b8d74fa483712230f92a1ec3W/Floral-Print-Dress-Loose-Casual-Dress-Women-Summer-Robe-Boho-Chic-Loose-Dress-Fashion-Long-Sleeve.jpg' ], feedback: [ { name: 'AliExpress Shopper', displayName: 'Virginia Carter', country: 'US', rating: 5, info: [Object], date: 2022-05-11T08:50:00.000Z, content: 'The color is the same as the description. There is no color difference in the picture. My height is 158. It fits very well. It is very loose and cool. I am very satisfied with this shopping. It makes me very happy. I will repurchase again.', photos: [Array] }, { name: 'AliExpress Shopper', displayName: 'Elisa Goyette', country: 'US', rating: 5, info: [Object], date: 2022-05-23T06:55:00.000Z, content: 'Very soft material, I like this miniskirt very much, the pink color is very pure, friends who like this dress can buy it with confidence, I believe you will be pleasantly surprised', photos: [Array] }, { name: 'AliExpress Shopper', displayName: 'Judy Batz', country: 'US', rating: 5, info: [Object], date: 2022-05-19T09:52:00.000Z, content: 'very good, nice color', photos: [Array] }, { name: 'AliExpress Shopper', displayName: 'Rebecca Cummerata', country: 'US', rating: 5, info: [Object], date: 2022-05-11T08:45:00.000Z, content: 'The clothes are loose and perfect for summer', photos: [Array] }, { name: 'AliExpress Shopper', displayName: 'Don Bauch', country: 'US', rating: 5, info: [Object], date: 2022-06-02T08:39:00.000Z, content: "I'm grateful for a beautiful dress", photos: [Array] }, { name: 'AliExpress Shopper', displayName: 'Brittany Heaney I', country: 'SG', rating: 5, info: [Object], date: 2022-05-19T08:31:00.000Z, content: 'Skirt dicetak dengan sangat jelas dan mempunyai corak bunga yang bagus dan kelihatan hebat', photos: [Array] }, { name: 'Lh', displayName: 'Ernest Rau', country: 'IL', rating: 5, info: [Object], date: 2022-05-26T07:26:00.000Z, content: 'Camera not receiving the original color her, nice clothes, a little expensive, but the quality perfect size fit', photos: [Array] }, { name: 'Ta', displayName: 'Inez Rowe', country: 'US', rating: 5, info: [Object], date: 2022-06-02T08:55:00.000Z, content: "I'm grateful for a beautiful dress", photos: [] }, { name: 'Jn', displayName: 'Sherri Spencer', country: 'IL', rating: 5, info: [Object], date: 2022-05-24T08:08:00.000Z, content: 'התקבל fast, very beautiful', photos: [Array] }, { name: 'Ch', displayName: 'Mathew Reynolds', country: 'KR', rating: 5, info: [Object], date: 2022-06-03T12:17:00.000Z, content: 'Terrific this dress for friends recommend it to you.', photos: [Array] }, { name: 'Ki', displayName: 'Moses Kub', country: 'RU', rating: 5, info: [Object], date: 2022-05-26T07:16:00.000Z, content: 'Perfect skirt!!', photos: [Array] }, { name: 'En', displayName: 'Dr. Irene Dickens', country: 'RU', rating: 5, info: [Object], date: 2022-06-07T11:46:00.000Z, content: 'It is very good seller, good service attitude and timely delivery', photos: [] }, { name: 'Gn', displayName: 'Kristine Turcotte IV', country: 'RU', rating: 5, info: [Object], date: 2022-06-04T03:29:00.000Z, content: 'Come in this store again to buy clothes', photos: [] }, { name: 'Mo', displayName: 'Jonathon Lueilwitz', country: 'IL', rating: 5, info: [Object], date: 2022-06-02T09:15:00.000Z, content: 'I recommend the dress this, is so beautiful', photos: [] }, { name: 'Se', displayName: 'Douglas Walsh', country: 'RU', rating: 5, info: [Object], date: 2022-06-07T11:59:00.000Z, content: 'Nice skirt', photos: [] }, { name: 'Ey', displayName: 'Doug Collier', country: 'ES', rating: 5, info: [Object], date: 2022-05-07T09:12:00.000Z, content: 'A dress that is worth buying', photos: [] }, { name: 'Ve', displayName: 'Jeremiah Bernier Sr.', country: 'KR', rating: 5, info: [Object], date: 2022-06-03T12:10:00.000Z, content: 'The fancy dress to you.', photos: [] }, { name: 'So', displayName: 'Marlene Schuppe', country: 'KR', rating: 5, info: [Object], date: 2022-05-19T09:14:00.000Z, content: 'Very good', photos: [] }, { name: 'Sy', displayName: 'Daniel Hintz', country: 'RU', rating: 5, info: [Object], date: 2022-05-26T08:40:00.000Z, content: 'Perfect', photos: [] }, { name: 'AliExpress Shopper', displayName: 'Nellie Feil', country: 'DE', rating: 4, info: [Object], date: 2022-05-09T17:59:00.000Z, content: 'Nice quality, have normal M and L ordered, fits very well', photos: [] }, { name: 'Jy', displayName: 'Lynette Senger', country: 'BR', rating: 5, info: [Object], date: 2022-06-02T08:30:00.000Z, content: '', photos: [Array] }, { name: 'Pe', displayName: 'Melinda King', country: 'US', rating: 5, info: [Object], date: 2022-05-07T09:33:00.000Z, content: 'This is a dress I recommend to my friends', photos: [] }, { name: 'Ta', displayName: 'Nina Kiehn', country: 'US', rating: 5, info: [Object], date: 2022-06-02T08:56:00.000Z, content: 'as light as a video', photos: [] }, { name: 'Rl', displayName: 'Katie Emmerich', country: 'US', rating: 5, info: [Object], date: 2022-05-19T10:11:00.000Z, content: 'very light clothes', photos: [] }, { name: 'La', displayName: 'Isaac Turcotte', country: 'US', rating: 5, info: [Object], date: 2022-06-12T06:08:00.000Z, content: '', photos: [] }, { name: 'Gg', displayName: 'Marcia Gusikowski', country: 'US', rating: 5, info: [Object], date: 2022-06-12T02:46:00.000Z, content: '', photos: [] }, { name: 'Eh', displayName: 'Viola Auer', country: 'IL', rating: 5, info: [Object], date: 2022-06-01T13:07:00.000Z, content: '', photos: [] }, { name: 'Jn', displayName: 'Mr. Sophie Hoeger', country: 'IL', rating: 5, info: [Object], date: 2022-06-02T09:12:00.000Z, content: '', photos: [] }, { name: 'AliExpress Shopper', displayName: 'Heather Goodwin', country: 'FR', rating: 5, info: [Object], date: 2022-06-02T08:26:00.000Z, content: '', photos: [] }, { name: 'Gt', displayName: 'Grady Frami', country: 'RU', rating: 5, info: [Object], date: 2022-06-03T13:13:00.000Z, content: '', photos: [] } ], variants: { options: [ [Object], [Object] ], prices: [ [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object] ] }, specs: [ { attrName: 'Sleeve Style', attrNameId: 200000362, attrValue: 'Regular', attrValueId: '200013017' }, { attrName: 'Silhouette', attrNameId: 100004669, attrValue: 'LOOSE', attrValueId: '200001035' }, { attrName: 'Neckline', attrNameId: 200000364, attrValue: 'V-Neck', attrValueId: '6987' }, { attrName: 'Decoration', attrNameId: 19150, attrValue: 'Bow', attrValueId: '200001928' }, { attrName: 'Style', attrNameId: 326, attrValue: 'Bohemian', attrValueId: '200004121' }, { attrName: 'Dresses Length', attrNameId: 200000446, attrValue: 'Mid-Calf', attrValueId: '200004116' }, { attrName: 'Material', attrNameId: 10, attrValue: 'Polyester', attrValueId: '48' }, { attrName: 'Material', attrNameId: 10, attrValue: 'Acrylic', attrValueId: '100019007' }, { attrName: 'Origin', attrNameId: 219, attrValue: 'CN(Origin)', attrValueId: '9441741844' }, { attrName: 'CN', attrNameId: 266081643, attrValue: 'Guangdong', attrValueId: '100015190' }, { attrName: 'Closure Type', attrNameId: 200000306, attrValue: 'Pullover', attrValueId: '200661015' }, { attrName: 'Type', attrNameId: 351, attrValue: 'Regular', attrValueId: '200001384' }, { attrName: 'Fabric Type', attrNameId: 100002012, attrValue: 'Chiffon', attrValueId: '50' }, { attrName: 'Material Composition', attrNameId: 200000400, attrValue: 'Natural fiber', attrValueId: '202432822' }, { attrName: 'Waistline', attrNameId: 200000363, attrValue: 'Natural Factors', attrValueId: '100013929' }, { attrName: 'Pattern Type', attrNameId: 200000329, attrValue: 'Print', attrValueId: '200001250' }, { attrName: 'Sleeve Length(cm)', attrNameId: 100007732, attrValue: 'Short', attrValueId: '200001498' }, { attrName: 'Age', attrNameId: 227611301, attrValue: 'Ages 18-35 Years Old', attrValueId: '7076323781' }, { attrName: 'Season', attrNameId: 281, attrValue: 'Summer', attrValueId: '366077' }, { attrName: 'Release Date', attrNameId: 200007728, attrValue: 'Winter 2022', attrValueId: '12162043628' }, { attrName: 'Profile Type', attrNameId: 248373937, attrValue: 'H', attrValueId: '361381' }, { attrName: 'Model Number', attrNameId: 3, attrValue: 'a08', attrValueId: '-1' }, { attrName: 'Gender', attrNameId: 284, attrValue: 'WOMEN', attrValueId: '494' }, { attrName: 'summer', attrNameId: -1, attrValue: 'dress', attrValueId: '-1' }, { attrName: 'color', attrNameId: -1, attrValue: 'Navy,Orange,Blue,Pink,Yellow', attrValueId: '-1' }, { attrName: 'size', attrNameId: -1, attrValue: 'S,M,L,XL', attrValueId: '-1' }, { attrName: 'loose', attrNameId: -1, attrValue: 'beautiful', attrValueId: '-1' }, { attrName: 'mini skirt', attrNameId: -1, attrValue: 'chiffon', attrValueId: '-1' }, { attrName: 'Floral Print', attrNameId: -1, attrValue: 'Loose,Casual', attrValueId: '-1' }, { attrName: 'women,female', attrNameId: -1, attrValue: 'spring,new', attrValueId: '-1' }, { attrName: 'Bohe,bohemian', attrNameId: -1, attrValue: 'sandy beach', attrValueId: '-1' }, { attrName: 'Large', attrNameId: -1, attrValue: 'elegant,', attrValueId: '-1' }, { attrName: 'graceful,refined,stylish', attrNameId: -1, attrValue: 'polished,charmi', attrValueId: '-1' } ], currency: 'USD', originalPrice: { min: 29.54, max: 29.54 }, salePrice: { min: 16.25, max: 16.25 } }

sudheer-ranga commented 9 months ago

@desaivishal11 I will look into this issue. In the meantime, can you update the package to the latest version to confirm if this is happening?