zalandobrands

zalando brands

python script to interact with zalando brands and articles.

Improve the brands api with more data from the Zalando brand page and other sources - giphy, duckduckgo,

analyze the description text for each brand. Create images stories with keywords.

fix the text that is failed to be parsed.

create flask json api with new and updated brand. title, slug, tags, logo, images.

In [3]:
import getpass
import requests
import shutil

import arrow
import bs4

import nltk
from nltk.tag import pos_tag
import random
In [6]:
curtim = arrow.now()
In [7]:
myusr = getpass.getuser()
In [8]:
zalbr = ('/home/{}/zalando/'.format(myusr))
In [9]:
zalgal = zalbr + 'galleries/'
In [10]:
branreq = requests.get('https://api.zalando.com/brands')
In [11]:
branjs = branreq.json()
In [12]:
totele = branjs['totalElements']
In [13]:
brnconl = len(branjs['content'])
In [14]:
branjs
Out[14]:
{'content': [{'key': 'H0I',
   'logoLargeUrl': 'https://i1.ztat.net/brandxl/de09ad47-b763-4bb4-b51b-ecdfb9f85489.jpg',
   'logoUrl': 'https://i1.ztat.net/brand/de09ad47-b763-4bb4-b51b-ecdfb9f85489.jpg',
   'name': 'Henry London',
   'shopUrl': 'https://www.zalando.co.uk/henry-london'},
  {'key': 'KT0',
   'logoLargeUrl': 'https://i5.ztat.net/brandxl/kt0.jpg',
   'logoUrl': 'https://i5.ztat.net/brand/kt0.jpg',
   'name': 'KariTraa',
   'shopUrl': 'https://www.zalando.co.uk/karitraa'},
  {'key': 'R00',
   'name': 'Repeat',
   'shopUrl': 'https://www.zalando.co.uk/repeat'},
  {'key': 'V20',
   'logoLargeUrl': 'https://i3.ztat.net/brandxl/vingino.jpg',
   'logoUrl': 'https://i3.ztat.net/brand/vingino.jpg',
   'name': 'Vingino',
   'shopUrl': 'https://www.zalando.co.uk/vingino'},
  {'brandFamily': {'key': 'NE00',
    'name': 'New Look',
    'shopUrl': 'https://www.zalando.co.uk/new-look-online-shop'},
   'key': 'NEB',
   'logoLargeUrl': 'https://i6.ztat.net/brandxl/f20fe518-3707-4955-aa97-e662c29243c8.jpg',
   'logoUrl': 'https://i6.ztat.net/brand/f20fe518-3707-4955-aa97-e662c29243c8.jpg',
   'name': 'New Look Tall',
   'shopUrl': 'https://www.zalando.co.uk/new-look-tall'},
  {'key': '9F0',
   'logoLargeUrl': 'https://i3.ztat.net/brandxl/fb20e215-abd1-418c-a42f-87edf091f32b.jpg',
   'logoUrl': 'https://i3.ztat.net/brand/fb20e215-abd1-418c-a42f-87edf091f32b.jpg',
   'name': '9Fashion',
   'shopUrl': 'https://www.zalando.co.uk/9fashion'},
  {'key': 'BS9',
   'logoLargeUrl': 'https://i5.ztat.net/brandxl/b356b23a-5d2b-4225-a419-9ead6863fecd.jpg',
   'logoUrl': 'https://i5.ztat.net/brand/b356b23a-5d2b-4225-a419-9ead6863fecd.jpg',
   'name': 'Blundstone',
   'shopUrl': 'https://www.zalando.co.uk/blundstone'},
  {'key': 'DAE',
   'logoLargeUrl': 'https://i5.ztat.net/brandxl/a0b6ff31-af14-4884-9244-27d3653771f0.jpg',
   'logoUrl': 'https://i5.ztat.net/brand/a0b6ff31-af14-4884-9244-27d3653771f0.jpg',
   'name': 'Daisy Street',
   'shopUrl': 'https://www.zalando.co.uk/daisy-street'},
  {'key': 'R67',
   'logoLargeUrl': 'https://i6.ztat.net/brandxl/soft-rebels-logo.jpg',
   'logoUrl': 'https://i6.ztat.net/brand/soft-rebels-logo.jpg',
   'name': 'Soft Rebels',
   'shopUrl': 'https://www.zalando.co.uk/soft-rebels'},
  {'key': 'TT9',
   'logoLargeUrl': 'https://i2.ztat.net/brandxl/tataitalialogo.jpg',
   'logoUrl': 'https://i2.ztat.net/brand/tataitalialogo.jpg',
   'name': 'Tata Italia',
   'shopUrl': 'https://www.zalando.co.uk/tata-italia'},
  {'key': 'DUB',
   'logoLargeUrl': 'https://i6.ztat.net/brandxl/7d4dda32-c961-4dad-a424-6266279fd6bd.jpg',
   'logoUrl': 'https://i6.ztat.net/brand/7d4dda32-c961-4dad-a424-6266279fd6bd.jpg',
   'name': 'Dune London WIDE FIT',
   'shopUrl': 'https://www.zalando.co.uk/dune-london-wide-fit'},
  {'brandFamily': {'key': 'ON00',
    'name': 'ONLY',
    'shopUrl': 'https://www.zalando.co.uk/only-online-shop'},
   'key': 'OS4',
   'logoLargeUrl': 'https://i3.ztat.net/brandxl/only-3.jpg',
   'logoUrl': 'https://i3.ztat.net/brand/only-3.jpg',
   'name': 'ONLY SHOES',
   'shopUrl': 'https://www.zalando.co.uk/only-shoes'},
  {'brandFamily': {'key': 'NIKE',
    'name': 'Nike',
    'shopUrl': 'https://www.zalando.co.uk/nike'},
   'key': 'NS4',
   'logoLargeUrl': 'https://i1.ztat.net/brandxl/d1680bae-42fb-4599-a415-4ead3bef636d.jpg',
   'logoUrl': 'https://i1.ztat.net/brand/d1680bae-42fb-4599-a415-4ead3bef636d.jpg',
   'name': 'Nike SB',
   'shopUrl': 'https://www.zalando.co.uk/nike-sb'},
  {'key': 'C0G',
   'name': 'Casbia',
   'shopUrl': 'https://www.zalando.co.uk/casbia'},
  {'key': 'YA0',
   'logoLargeUrl': 'https://i4.ztat.net/brandxl/7b46195f-04d8-46b7-b5cb-c846f7218695.jpg',
   'logoUrl': 'https://i4.ztat.net/brand/7b46195f-04d8-46b7-b5cb-c846f7218695.jpg',
   'name': 'YAS Tall',
   'shopUrl': 'https://www.zalando.co.uk/yas-tall'},
  {'key': 'M1B',
   'logoLargeUrl': 'https://i6.ztat.net/brandxl/06eebdbe-3775-4e86-b23a-5f659f399b59.jpg',
   'logoUrl': 'https://i6.ztat.net/brand/06eebdbe-3775-4e86-b23a-5f659f399b59.jpg',
   'name': 'My Mascara Curves',
   'shopUrl': 'https://www.zalando.co.uk/my-mascara-curves'},
  {'key': 'RU9',
   'name': 'Rusty',
   'shopUrl': 'https://www.zalando.co.uk/rusty'},
  {'key': 'B0N',
   'logoLargeUrl': 'https://i3.ztat.net/brandxl/f9560bae-0dea-498a-9ef0-06a75fdd6723.jpg',
   'logoUrl': 'https://i3.ztat.net/brand/f9560bae-0dea-498a-9ef0-06a75fdd6723.jpg',
   'name': 'Betty & Co',
   'shopUrl': 'https://www.zalando.co.uk/betty-and-co'},
  {'key': 'EN8',
   'logoLargeUrl': 'https://i2.ztat.net/brandxl/6a3900d3-ee8f-4397-a2a1-4d9a3e6f7351.jpg',
   'logoUrl': 'https://i2.ztat.net/brand/6a3900d3-ee8f-4397-a2a1-4d9a3e6f7351.jpg',
   'name': 'English Factory',
   'shopUrl': 'https://www.zalando.co.uk/english-factory'},
  {'key': 'R03',
   'logoLargeUrl': 'https://i3.ztat.net/brandxl/7d2de517-b2aa-407b-8361-9b0f88d5da52.jpg',
   'logoUrl': 'https://i3.ztat.net/brand/7d2de517-b2aa-407b-8361-9b0f88d5da52.jpg',
   'name': 'Replika',
   'shopUrl': 'https://www.zalando.co.uk/replika'}],
 'page': 1,
 'size': 20,
 'totalElements': 1726,
 'totalPages': 87}
In [15]:
brnconl
Out[15]:
20
In [16]:
totpag = branjs['totalPages']
In [17]:
zalgal
Out[17]:
'/home/wcm/zalando/galleries/'
In [18]:
lilwhi = requests.get('https://www.zalando.co.uk/little-white-lies/')

lilw = lilwhi.text

bsliw = bs4.BeautifulSoup(lilw)

bsliw

desfil =  (bsliw.find('div', id=('description')))

desp = desfil.p

desp.text
/usr/lib/python3/dist-packages/bs4/__init__.py:181: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("lxml"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently.

The code that caused this warning is on line 193 of the file /usr/lib/python3.5/runpy.py. To get rid of this warning, change code that looks like this:

 BeautifulSoup([your markup])

to this:

 BeautifulSoup([your markup], "lxml")

  markup_type=markup_type))
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-18-42a1e3a67fcb> in <module>()
      9 desfil =  (bsliw.find('div', id=('description')))
     10 
---> 11 desp = desfil.p
     12 
     13 desp.text

AttributeError: 'NoneType' object has no attribute 'p'
In [19]:
#deshe = desfil.h2
In [20]:
desp = desfil.p
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-20-ea2c78f1236d> in <module>()
----> 1 desp = desfil.p

AttributeError: 'NoneType' object has no attribute 'p'
In [21]:
toktx = nltk.word_tokenize(desp.text)
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-21-cdbe97360dc0> in <module>()
----> 1 toktx = nltk.word_tokenize(desp.text)

NameError: name 'desp' is not defined
In [22]:
nlmytx = nltk.Text(toktx)
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-22-83987a717a02> in <module>()
----> 1 nlmytx = nltk.Text(toktx)

NameError: name 'toktx' is not defined
In [23]:
nlmytx.concordance('Your')
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-23-f984c3125cf8> in <module>()
----> 1 nlmytx.concordance('Your')

NameError: name 'nlmytx' is not defined
In [24]:
toktx
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-24-24f76966c898> in <module>()
----> 1 toktx

NameError: name 'toktx' is not defined
In [25]:
for blogb in blogbrdic:
    print(blogb)
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-25-74c9583f15d0> in <module>()
----> 1 for blogb in blogbrdic:
      2     print(blogb)

NameError: name 'blogbrdic' is not defined
In [26]:
len(blogbrdic)
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-26-28ecd0cb7a15> in <module>()
----> 1 len(blogbrdic)

NameError: name 'blogbrdic' is not defined
In [27]:
for ble in range(0, len(blogbrdic)):
    print(blogbrdic[ble])
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-27-575b6776e123> in <module>()
----> 1 for ble in range(0, len(blogbrdic)):
      2     print(blogbrdic[ble])

NameError: name 'blogbrdic' is not defined
In [28]:
desp.text
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-28-d98ee41422cf> in <module>()
----> 1 desp.text

NameError: name 'desp' is not defined
In [29]:
blogbrdic = dict()
In [30]:
bloglisn = list()
In [31]:
reqph = requests.get('https://api.zalando.com/brands?pageSize={}'.format(totpag))
alljs = (reqph.json())
brnconz = len(alljs['content'])
for sel in range(0, brnconz):
    #print(alljs['content'][sel]['name'])
    namsl = (alljs['content'][sel]['name'])
    namcd = (alljs['content'][sel]['key'])
    print(namcd)
    namsq = namsl.replace(' ', '-')

    mamsq = namsq.lower

    print(mamsq())
    blogbrdic.update({mamsq() : 'test'})
                      
    try:
        logurl = (alljs['content'][sel]['logoUrl'])
        
        shurl = (alljs['content'][sel]['shopUrl'])
        
        print(logurl)
        print(shurl)
        
        lilwhi = requests.get(shurl)

        lilw = lilwhi.text

        bsliw = bs4.BeautifulSoup(lilw)

        #bsliw

        desfil =  (bsliw.find('div', id=('description')))

        try:
            desp = desfil.p
            
            depa = desfil.strong
        except AttributeError:
            pass
        
        print(depa.text)
        print(desp.text)
        blogbrdic.update({mamsq() : dict({'description' : desp.text, 'header': depa.text})})
        bloglisn.append(desp.text)
        
        #response = requests.get(logurl, stream=True)
        #print(response.headers)
        #print(response.history)
        #splilog = urlsplit(logurl)
        #print(splilog[2])
        with open ('/home/{}/zalando/posts/{}.md'.format(myusr, namcd), 'w') as oppost:
            #oppost.write('![{}'.format())
            oppost.write(('![' + mamsq() + '](' + logurl + ')\n\n' + mamsq() + '\n\n' + depa.text + '\n\n' + desp.text))
        
        with open ('/home/{}/zalando/posts/{}.meta'.format(myusr, namcd), 'w') as opmetat:
            #opmetat.write("{}".format(str(curtim))
            opmetat.write('.. title: {}\n.. slug: {}\n.. date: {}\n.. tags: \n.. link:\n.. description:\n.. type: text'.format(namcd, namcd, curtim))

        #with open('{}{}.png'.format(zalgal, str(totp)), 'wb') as out_file:
                
        #    shutil.copyfileobj(response.raw, out_file)
        #    del response
    except KeyError:
        continue
H0I
henry-london
https://i1.ztat.net/brand/de09ad47-b763-4bb4-b51b-ecdfb9f85489.jpg
https://www.zalando.co.uk/henry-london
/usr/lib/python3/dist-packages/bs4/__init__.py:181: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("lxml"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently.

The code that caused this warning is on line 193 of the file /usr/lib/python3.5/runpy.py. To get rid of this warning, change code that looks like this:

 BeautifulSoup([your markup])

to this:

 BeautifulSoup([your markup], "lxml")

  markup_type=markup_type))
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-31-18451ddb8b63> in <module>()
     39             pass
     40 
---> 41         print(depa.text)
     42         print(desp.text)
     43         blogbrdic.update({mamsq() : dict({'description' : desp.text, 'header': depa.text})})

NameError: name 'depa' is not defined
In [275]:
g = Generator(bloglisn)
In [282]:
myblog = ' '.join(bloglisn)
In [287]:
nlblog = (myblog.split)
In [371]:
fixcom = myblog.replace(',', '')
In [375]:
foxcom = fixcom.replace('.', '')
In [378]:
foxcom
Out[378]:
"Too many shoes sacrifice comfort for a fussy complicated style Of course most of us don't mind occasionally suffering in the name of beauty but are we really willing to put up with aching feet all the time? Why can't we have shoes that are both beautiful to look at and blissful to wear? Well now we can! Free your feet with LICO at Zalando! This brand has been supplying the public with comfortable practical stylish shoes for over thirty years Carefree and relaxed their sense of style reflects those who like to look good and feel great without thinking about it too much Take a look at our shoes for children from LICO - featuring everything from ballet pumps to trainers in a variety of colours and styles this range will contain something for even the pickiest of kids and teens Too many shoes sacrifice comfort for a fussy complicated style Of course most of us don't mind occasionally suffering in the name of beauty but are we really willing to put up with aching feet all the time? Why can't we have shoes that are both beautiful to look at and blissful to wear? Well now we can! Free your feet with LICO at Zalando! This brand has been supplying the public with comfortable practical stylish shoes for over thirty years Carefree and relaxed their sense of style reflects those who like to look good and feel great without thinking about it too much Take a look at our shoes for children from LICO - featuring everything from ballet pumps to trainers in a variety of colours and styles this range will contain something for even the pickiest of kids and teens  Glitzy decadent detailed and luxuriously finished sweet deluxe has us covered when it comes to statement jewellery with that unique individual twist \nThe 'Godfather of Urban Fashion' Karl Kani designs edgy fashionable hip-hop men's clothing for guys who want to look up-to-date without even having to think about it Karl Kani himself is a shining example of a man who's lived the American Dream - a self-taught designer and a self-made man Karl Kani spent his youth exploring his passion for music and fashion until at 16 years old he started to design his own clothing Pretty soon everyone was after something created by this hip young designer and the rest as they say is history Today the brand is internationally renowned for bringing fresh fashion to guys with attitude its clothing has been seen on Hollywood film stars and rap legends and P Diddy himself has cited Kani as a huge inspiration for all those who dream of achieving big things from small beginnings      Kanna - because fashion isn't just about clothes! If there's one thing the designers at Kanna understand it's feminine fashion This Spanish footwear company has been helping women add the finishing touch to their outfit for over 25 years Catering for all those who appreciate high-end fashion that's low-fuss Kanna really understands the importance of fashion that's wearable every day not just on the catwalks This is why only the finest of materials go into the making of Kanna footwear to ensure your feet feel comfortable every time you step out in a pair of these fabulous designs! The ultimate care and attention to detail is taken with every single pair from the minute ideas start flowing at the design board to the second you put on a pair of women's shoes by Kanna  Founded in 1987 the haute couture house of Christian Lacroix is one of the most recognized French fashion houses in the world Extravagant uses of detail eccentricity and craftsmanship are the fundamentals of this legendary brand Lacroix is famed for his exceptional designs that are inspired by the beautiful landscapes of Provence Venice Spain and also by fairy tales Christian Lacroix women’s handbags channel the designer’s attention-getting aesthetic but in streamlined sophisticated designs The wide range of sumptuous colours available means pieces can be matched easily with your wardrobe Christian Lacroix women's accessories have been specifically designed with busy lifestyles in mind Christian Lacroix tote bags are practical for a busy day rushing around the city whilst shoulder bags are ideal for those who value comfort in their bag choice Christian Lacroix’s colour palette is particularly sophisticated including royal blue stone toned taupe deep burgundy and ever-classic black Founded in 1987 the haute couture house of Christian Lacroix is one of the most recognized French fashion houses in the world Extravagant uses of detail eccentricity and craftsmanship are the fundamentals of this legendary brand Lacroix is famed for his exceptional designs that are inspired by the beautiful landscapes of Provence Venice Spain and also by fairy tales Christian Lacroix women’s handbags channel the designer’s attention-getting aesthetic but in streamlined sophisticated designs The wide range of sumptuous colours available means pieces can be matched easily with your wardrobe Christian Lacroix women's accessories have been specifically designed with busy lifestyles in mind Christian Lacroix tote bags are practical for a busy day rushing around the city whilst shoulder bags are ideal for those who value comfort in their bag choice Christian Lacroix’s colour palette is particularly sophisticated including royal blue stone toned taupe deep burgundy and ever-classic black Founded in 1987 the haute couture house of Christian Lacroix is one of the most recognized French fashion houses in the world Extravagant uses of detail eccentricity and craftsmanship are the fundamentals of this legendary brand Lacroix is famed for his exceptional designs that are inspired by the beautiful landscapes of Provence Venice Spain and also by fairy tales Christian Lacroix women’s handbags channel the designer’s attention-getting aesthetic but in streamlined sophisticated designs The wide range of sumptuous colours available means pieces can be matched easily with your wardrobe Christian Lacroix women's accessories have been specifically designed with busy lifestyles in mind Christian Lacroix tote bags are practical for a busy day rushing around the city whilst shoulder bags are ideal for those who value comfort in their bag choice Christian Lacroix’s colour palette is particularly sophisticated including royal blue stone toned taupe deep burgundy and ever-classic black Founded in 1987 the haute couture house of Christian Lacroix is one of the most recognized French fashion houses in the world Extravagant uses of detail eccentricity and craftsmanship are the fundamentals of this legendary brand Lacroix is famed for his exceptional designs that are inspired by the beautiful landscapes of Provence Venice Spain and also by fairy tales Christian Lacroix women’s handbags channel the designer’s attention-getting aesthetic but in streamlined sophisticated designs The wide range of sumptuous colours available means pieces can be matched easily with your wardrobe Christian Lacroix women's accessories have been specifically designed with busy lifestyles in mind Christian Lacroix tote bags are practical for a busy day rushing around the city whilst shoulder bags are ideal for those who value comfort in their bag choice Christian Lacroix’s colour palette is particularly sophisticated including royal blue stone toned taupe deep burgundy and ever-classic black Founded in 1987 the haute couture house of Christian Lacroix is one of the most recognized French fashion houses in the world Extravagant uses of detail eccentricity and craftsmanship are the fundamentals of this legendary brand Lacroix is famed for his exceptional designs that are inspired by the beautiful landscapes of Provence Venice Spain and also by fairy tales Christian Lacroix women’s handbags channel the designer’s attention-getting aesthetic but in streamlined sophisticated designs The wide range of sumptuous colours available means pieces can be matched easily with your wardrobe Christian Lacroix women's accessories have been specifically designed with busy lifestyles in mind Christian Lacroix tote bags are practical for a busy day rushing around the city whilst shoulder bags are ideal for those who value comfort in their bag choice Christian Lacroix’s colour palette is particularly sophisticated including royal blue stone toned taupe deep burgundy and ever-classic black The New York City designer Mara Hoffman created her brand Mara Hoffman in 2000 straight out of Manhattan’s colourful and lively flower district Since then the brand has become renowned for its heavy focus on clothes with extraordinary bold prints and vibrant bright colours that are instantly recognizable and unique Mara Hoffman’s quirky designs take influence from West Africa high-fashion trends and Hoffman’s personal interest in nature mythology and world travel These particular themes result in the creation of rare fashion pieces that embody the brand’s fun fearless charm and represent the beauty in everyday life Celebrity clients of the fashionable brand include Jennifer Lopez Miranda Kerr and Eva Longoria Cache Coeur is a truly special fashion label Since 2008 husband and wife duo Philippe and Audrey Trolliet have been designing and creating a specialist range of lingerie swimwear and pyjamas for mums-to-be Not your typical maternity line the underwear and clothing featured in this collection are comfortable practical and incredibly stylish Above all Cache Coeur appreciate that every future mother is still a woman who doesn't give up her desire for a beautiful and refined personal style Soft and sumptuous fabrics supportive designs that adapt to your changing shape and a very high quality feminine style are key to the brand In fact this chic fashion label brings a delicate Parisian flavour to the collection offering every expectant mother an exquisite alternative to the often dull and drab maternity-wear  Beautiful playful and fun Senso is a directional Australian based footwear design brand that has been crafting quality fashion-forward shoes since 1980 Based in Sydney this brand is now an international sensation dazzling their fans with inspired designs in the UK and US Senso was founded as a family business and continues to thrive as such today Their design and crafting practices reflect this with a wide variety of styles and collections that appeal to all generations of fashionistas With new and innovative designs as well as modern takes on footwear favourites this brand has always designed for both the conservative older market that has taken the lead in Australian footwear since the 1980s as well as fresh and young fashion conscious shoppers of today Senso women's classic ankle boots reflect the best of both these design worlds and are the perfect addition to any footwear collection \xa0Beautifully crafted and reliable Senso is the perfect brand to inject some sensible luxury into your style The stunning knitwear and unique designs of KOOI has set the label apart in the fashion world Originating in Serbia this innovative brand specialises in knitwear from jumpers and dresses to cardigans and skirts no item of clothing is beyond the vision and scope of this unique European brand KOOI women's clothingare visually dramatic and yet intricately feminine evoking traditional craft and design as well as fresh exciting prints that showcase the brand's tribal floral and artisan inspirations The rich and vibrant impact of these KOOI women's cardigans and tops means that even the most basic pair of jeans is given an injection of vitality infusing everyday outfits with eclectic colour mixes that are guaranteed to brighten up the dullest of occasions Browse through the range of KOOI women's clothing at the Zalando online boutique and be inspired at how smart knitwear can look in the hands of a dedicated designer  The BCBGMAXAZRIA label encompasses women's clothing shoes and accessories such as belts jewellery and hats Tunisian born fashion designer Max Azria established the brand name in 1989 in America and since that time the label has gained worldwide recognition for its distinctive styles and beautiful designs The collections from this brand are stunning and feminine With a diverse choice to select from women will find something to create a look that's perfect for them From eclectic bold statements to the sophistication of straight cuts and tailored fits items from this premium brand are suitable for any occasion Each piece in the range conveys a true sense of individuality and is a wonderful fashion statement for any woman The brand has a subtle hint of the 1970's era but with a modern day twist Created from quality fabrics and with careful attention given to details this brand delivers beautiful items for beautiful women Whether you want an elegant pair of sandals for a special occasion a party dress or a chic skirt suit you'll be able to find exactly what you're looking for from BCBGMAXAZRIA at Zalandocouk   From their dapper men's smart shoes to their urban trainer designs you won't want to miss out on Monderer footwear! The French origins of this shoe brand shine through in the effortless chic energy of the designs whilst unmissable details make it clear that Monderer has a modern creative direction which results in refreshingly different shoe styles Never neglecting to produce attractive designs the brand also focusses on rejuvenating classic shoe styles A traditional element of this brand's work is their passionate focus on using high quality leathers materials and skill to create their range of Monderer Heritage shoes Whether you are looking for smart or casual shoes the range of Monderer shoes available to purchase on Zalando shouldn't be ignored Persol is a premium Italian brand that has specialised in fine sunglasses since 1917 From the very beginning Persol men's sunglasses were designed as specialist eyewear to be worn by pilots sportsmen and explorers One style now a classic was designed specifically for Turin tram drivers The company's uncompromising standards give each pair an effortless style derived from the company's single-minded commitment to excellence There's a long list of celebrities and movie stars who have selected Persols to become part of their individual look precisely because of the brand's functional elegance Understated and perfectly crafted Persol men's accessories are conceived to be an essential part of your summer You'll feel the heritage every time you wear them because each pair is still made by skilled craftsmen at the Persol headquarters in Italy    Paper Dolls women’s clothing has fast become a recognisable label due to their impressive ability to offer a flattering edit of tailored stylish and on-trend dresses every season The brand is known in many numerous countries for the way the Paper Dolls women's dresses fit to your natural shape and compliment your curves by highlighting the attributes that make you feel most confident This great fitting innovation ensures that each season the dresses are made of only the best fabrics that can hug your shape and make that perfect dress fit like a glove Stretchy luxe fabrics such as nylon and spandex which are well-known for their bodycon features Paper Dolls provides a mixture of great fitting dresses that are always up to date with the latest trends whether it be classic monotone looks or vibrant springtime shades The wide selection of colour palettes ensures that you can find something special in the collection whether it be for sunshine summers or cool winters Paper Dolls women’s clothing has fast become a recognisable label due to their impressive ability to offer a flattering edit of tailored stylish and on-trend dresses every season The brand is known in many numerous countries for the way the Paper Dolls women's dresses fit to your natural shape and compliment your curves by highlighting the attributes that make you feel most confident This great fitting innovation ensures that each season the dresses are made of only the best fabrics that can hug your shape and make that perfect dress fit like a glove Stretchy luxe fabrics such as nylon and spandex which are well-known for their bodycon features Paper Dolls provides a mixture of great fitting dresses that are always up to date with the latest trends whether it be classic monotone looks or vibrant springtime shades The wide selection of colour palettes ensures that you can find something special in the collection whether it be for sunshine summers or cool winters ONLY PLAY are the perfect brand for women who are passionate about fashion and sports; the brand was launched in 2006 and is the sub-brand of popular fashion label ONLY This stylish label appreciates that women want to look and feel good when it comes to sports which is why they have created a broad selection of sportswear for the fashion conscious women out there Along with looking fabulous all clothing has been made with the finest and most breathable of fabrics to ensure you are wearing the right kit to work out in Vibrant colours and fun details comprise this range of ONLY PLAY women’s sports clothing to ensure that all women can exercise in the appropriate attire without having to compromise on style   Nagano jackets capture the essence of casual urban streetwear and mix it up with rugged outdoor looks These practical jackets have the military shades as well as the sheepskin and faux-fur collars that feature on the season's catwalks    Tata Italia is fast becoming one of Italy's premiere footwear brands with more than 35 stores and a growing number of devotees across Europe Born of the iconic Tatarella footwear brand since it's conception Tata Italia has also branched out into high quality accessories For a great range of sports clothing look no further than the innovative styles that Newline offers There are some fantastic tops jackets and shorts in stunning colours to choose from within these collections of men's and women's sports gear all of which make wearers look very fashionable and comfortable when taking part in the sport of their choice Check out the leggings which have adjustable elasticated waistbands and which are made out of polyester and spandex - both breathable materials perfect when out running jogging or training Newline is definitely a brand name that no sportsman or woman should be without not only for its fabulous looks but also for style and quality Waistcoats are also a useful addition to your sports gear as they have water resistant zips are fully lined wind resistant and made from 100% polyester but whatever your item of choice you can get it now from Zalandocouk Maison Lejaby has been tempting women with its dedication to lingerie since 1930 Parisian allure and sensual elegance are added to seductive lace in a collection that is beautifully feminine Portugese brand Lemon Jelly are a fun exciting and vibrant label who are genuinely passionate about producing comfortable durable and stimulating footwear Lemon Jelly seek to create a fun brand who embrace life and create shoes which will bring joy into people’s lives The brand was born when a group of creative minds fused their ideas together; brainstorming about the simplest pleasures in life such as tastes colours flavours and feeings; Lemon Jelly then began to produce footwear which encompassed one or all of these elements Here at Zalandocouk we have a stunning range of Lemon Jelly women’s shoes on offer From ankle boots to high-heeled sandals - this collection offers a variety of different style of shoes all of which are made from this hard-wearing versatile and contemporary material Jelly shoes are a great choice for all seasons whether you are splashing around puddles during those dreary winter months or enjoying the beach in the summer heat-jelly shoes are an excellent choice for keeping your feet comfortable without having to worry about water ruining them Quirky Dutch fashion label Zoe Karssen launched their range of women's t-shirts in 2012 and rapidly established themselves as the ultimate cult-brand for cool eccentric girls Designers Zoe and Quince Karssen capture the essence of Amsterdam in their label Fresh urban and trendy this up-and-coming brand has modernised the basic t-shirt to an eye-catching item you can proudly wear out and about Zoe Karssen produce light throw-on tops out of super-soft cotton with super-comfortable fits making them all the rage for the festival season Adorned with tongue-in-cheek images and slogans this contemporary clothing brand is aimed at dramatic young women keen to express their individual style Worn over skinny jeans or a floral skirt women's clothing from Zoe Karssen adds a dose of fun and flirtiness to an outfit Feminine colours meshed with rebellious slogans has made Zoe Karssen women's clothing a label for party-girls everywhere! Quirky Dutch fashion label Zoe Karssen launched their range of women's t-shirts in 2012 and rapidly established themselves as the ultimate cult-brand for cool eccentric girls Designers Zoe and Quince Karssen capture the essence of Amsterdam in their label Fresh urban and trendy this up-and-coming brand has modernised the basic t-shirt to an eye-catching item you can proudly wear out and about Zoe Karssen produce light throw-on tops out of super-soft cotton with super-comfortable fits making them all the rage for the festival season Adorned with tongue-in-cheek images and slogans this contemporary clothing brand is aimed at dramatic young women keen to express their individual style Worn over skinny jeans or a floral skirt women's clothing from Zoe Karssen adds a dose of fun and flirtiness to an outfit Feminine colours meshed with rebellious slogans has made Zoe Karssen women's clothing a label for party-girls everywhere! For those first little steps or bold big strides Däumling creates great kids' shoes! With fun designs the brand prides itself on their attention to detail with colourful and creative finishes that children will adore From comfortable winter boots to cute children's Däumling sandals the German kids' shoe company produces footwear that provides support where young feet need it Made using well sourced materials Däumling kids' shoes have been recognised for their quality since the company was started in 1937 by Hermann Meyer All Däumling shoes are sturdy and comfortable with a solid grip ideal for active children The playful designs of Däumling shoes are also available in smart designs for both boys and girls Däumling designs for little girls are particularly cute so why not purchase a pair from Zalando today!  POPcph is a Danish fashion brand founded in the nights of Copenhagen in 2005 by the two friends Kasper Henriksen & Mikkel Kristensen\xa0 Free People started their journey back in the 1970’s when founder Richard Hayne opened the first store in West Philadelphia Pennsylvania Freedom femininity creativity and individuality were all elements which fused together to create this unique label Its success in the 1970’s led to the growth of the Free People store which soon changed to Urban Outfitters Over time the company evolved and now operates under three brands: Free People Urban Outfitters and Anthropologie Each with their own individual stance Free People is the brand which stands out for its richness in romance courage and spirit Catering to the needs of independent and confident women Free People’s style is bohemian and spiritual; they produce women’s clothing accessories shoes intimates and swimwear- a large proportion of which are produced from eco-friendly and vegan materials Here at Zalando we have a stunning collection of Free People women’s clothing on offer so take a look online and inject some individuality into your wardrobe     Oxitaly design shoes with Italian quality and style! Creating modern designs whilst preserving the heritage of the brand Oxitaly is proud of the sophisticated women's footwear it crafts Founded in 1990 the brand's innovative designs are elegant and add a touch of sophistication to any outfit Designed and made in Italy using only Italian materials and leathers all Oxitaly high-heels feature the quality you would expect from an Italian brand Oxitaly is also proud of the workmanship that goes into creating feminine women's ankle boots Working to ensure customers are satisfied with their exceptional shoes Oxitaly prioritises comfort alongside quality and style If you are looking for a new pair of stylish shoes choose from our stunning selection of Oxitaly footwear on Zalando! Be Edgy takes the leather jacket and makes it stand out from the crowd Pastel shades sophisticated greys natural hues and bold reds all fizz on these bomber biker and tailored designs Be Edgy takes the leather jacket and makes it stand out from the crowd Pastel shades sophisticated greys natural hues and bold reds all fizz on these bomber biker and tailored designs  "
In [354]:
bltxe = nltk.Text(myblog)
In [382]:
post = pos_tag(foxcom.split())
In [383]:
post
Out[383]:
[('Too', 'RB'),
 ('many', 'JJ'),
 ('shoes', 'NNS'),
 ('sacrifice', 'VBP'),
 ('comfort', 'NN'),
 ('for', 'IN'),
 ('a', 'DT'),
 ('fussy', 'JJ'),
 ('complicated', 'JJ'),
 ('style', 'NN'),
 ('Of', 'IN'),
 ('course', 'NN'),
 ('most', 'JJS'),
 ('of', 'IN'),
 ('us', 'PRP'),
 ("don't", 'VBP'),
 ('mind', 'VB'),
 ('occasionally', 'RB'),
 ('suffering', 'VBG'),
 ('in', 'IN'),
 ('the', 'DT'),
 ('name', 'NN'),
 ('of', 'IN'),
 ('beauty', 'NN'),
 ('but', 'CC'),
 ('are', 'VBP'),
 ('we', 'PRP'),
 ('really', 'RB'),
 ('willing', 'JJ'),
 ('to', 'TO'),
 ('put', 'VB'),
 ('up', 'RP'),
 ('with', 'IN'),
 ('aching', 'VBG'),
 ('feet', 'NNS'),
 ('all', 'PDT'),
 ('the', 'DT'),
 ('time?', 'NN'),
 ('Why', 'WRB'),
 ("can't", 'NN'),
 ('we', 'PRP'),
 ('have', 'VBP'),
 ('shoes', 'NNS'),
 ('that', 'WDT'),
 ('are', 'VBP'),
 ('both', 'DT'),
 ('beautiful', 'JJ'),
 ('to', 'TO'),
 ('look', 'VB'),
 ('at', 'IN'),
 ('and', 'CC'),
 ('blissful', 'JJ'),
 ('to', 'TO'),
 ('wear?', 'VB'),
 ('Well', 'RB'),
 ('now', 'RB'),
 ('we', 'PRP'),
 ('can!', 'VBP'),
 ('Free', 'JJ'),
 ('your', 'PRP$'),
 ('feet', 'NNS'),
 ('with', 'IN'),
 ('LICO', 'NNP'),
 ('at', 'IN'),
 ('Zalando!', 'NNP'),
 ('This', 'DT'),
 ('brand', 'NN'),
 ('has', 'VBZ'),
 ('been', 'VBN'),
 ('supplying', 'VBG'),
 ('the', 'DT'),
 ('public', 'NN'),
 ('with', 'IN'),
 ('comfortable', 'JJ'),
 ('practical', 'JJ'),
 ('stylish', 'NN'),
 ('shoes', 'NNS'),
 ('for', 'IN'),
 ('over', 'IN'),
 ('thirty', 'JJ'),
 ('years', 'NNS'),
 ('Carefree', 'NNP'),
 ('and', 'CC'),
 ('relaxed', 'VBD'),
 ('their', 'PRP$'),
 ('sense', 'NN'),
 ('of', 'IN'),
 ('style', 'NN'),
 ('reflects', 'VBZ'),
 ('those', 'DT'),
 ('who', 'WP'),
 ('like', 'VBP'),
 ('to', 'TO'),
 ('look', 'VB'),
 ('good', 'JJ'),
 ('and', 'CC'),
 ('feel', 'VB'),
 ('great', 'JJ'),
 ('without', 'IN'),
 ('thinking', 'VBG'),
 ('about', 'IN'),
 ('it', 'PRP'),
 ('too', 'RB'),
 ('much', 'JJ'),
 ('Take', 'VB'),
 ('a', 'DT'),
 ('look', 'NN'),
 ('at', 'IN'),
 ('our', 'PRP$'),
 ('shoes', 'NNS'),
 ('for', 'IN'),
 ('children', 'NNS'),
 ('from', 'IN'),
 ('LICO', 'NNP'),
 ('-', ':'),
 ('featuring', 'VBG'),
 ('everything', 'NN'),
 ('from', 'IN'),
 ('ballet', 'NN'),
 ('pumps', 'NNS'),
 ('to', 'TO'),
 ('trainers', 'NNS'),
 ('in', 'IN'),
 ('a', 'DT'),
 ('variety', 'NN'),
 ('of', 'IN'),
 ('colours', 'NNS'),
 ('and', 'CC'),
 ('styles', 'NNS'),
 ('this', 'DT'),
 ('range', 'NN'),
 ('will', 'MD'),
 ('contain', 'VB'),
 ('something', 'NN'),
 ('for', 'IN'),
 ('even', 'RB'),
 ('the', 'DT'),
 ('pickiest', 'NN'),
 ('of', 'IN'),
 ('kids', 'NNS'),
 ('and', 'CC'),
 ('teens', 'NNS'),
 ('Too', 'NNP'),
 ('many', 'JJ'),
 ('shoes', 'NNS'),
 ('sacrifice', 'VBP'),
 ('comfort', 'NN'),
 ('for', 'IN'),
 ('a', 'DT'),
 ('fussy', 'JJ'),
 ('complicated', 'JJ'),
 ('style', 'NN'),
 ('Of', 'IN'),
 ('course', 'NN'),
 ('most', 'JJS'),
 ('of', 'IN'),
 ('us', 'PRP'),
 ("don't", 'VBP'),
 ('mind', 'VB'),
 ('occasionally', 'RB'),
 ('suffering', 'VBG'),
 ('in', 'IN'),
 ('the', 'DT'),
 ('name', 'NN'),
 ('of', 'IN'),
 ('beauty', 'NN'),
 ('but', 'CC'),
 ('are', 'VBP'),
 ('we', 'PRP'),
 ('really', 'RB'),
 ('willing', 'JJ'),
 ('to', 'TO'),
 ('put', 'VB'),
 ('up', 'RP'),
 ('with', 'IN'),
 ('aching', 'VBG'),
 ('feet', 'NNS'),
 ('all', 'PDT'),
 ('the', 'DT'),
 ('time?', 'NN'),
 ('Why', 'WRB'),
 ("can't", 'NN'),
 ('we', 'PRP'),
 ('have', 'VBP'),
 ('shoes', 'NNS'),
 ('that', 'WDT'),
 ('are', 'VBP'),
 ('both', 'DT'),
 ('beautiful', 'JJ'),
 ('to', 'TO'),
 ('look', 'VB'),
 ('at', 'IN'),
 ('and', 'CC'),
 ('blissful', 'JJ'),
 ('to', 'TO'),
 ('wear?', 'VB'),
 ('Well', 'RB'),
 ('now', 'RB'),
 ('we', 'PRP'),
 ('can!', 'VBP'),
 ('Free', 'JJ'),
 ('your', 'PRP$'),
 ('feet', 'NNS'),
 ('with', 'IN'),
 ('LICO', 'NNP'),
 ('at', 'IN'),
 ('Zalando!', 'NNP'),
 ('This', 'DT'),
 ('brand', 'NN'),
 ('has', 'VBZ'),
 ('been', 'VBN'),
 ('supplying', 'VBG'),
 ('the', 'DT'),
 ('public', 'NN'),
 ('with', 'IN'),
 ('comfortable', 'JJ'),
 ('practical', 'JJ'),
 ('stylish', 'NN'),
 ('shoes', 'NNS'),
 ('for', 'IN'),
 ('over', 'IN'),
 ('thirty', 'JJ'),
 ('years', 'NNS'),
 ('Carefree', 'NNP'),
 ('and', 'CC'),
 ('relaxed', 'VBD'),
 ('their', 'PRP$'),
 ('sense', 'NN'),
 ('of', 'IN'),
 ('style', 'NN'),
 ('reflects', 'VBZ'),
 ('those', 'DT'),
 ('who', 'WP'),
 ('like', 'VBP'),
 ('to', 'TO'),
 ('look', 'VB'),
 ('good', 'JJ'),
 ('and', 'CC'),
 ('feel', 'VB'),
 ('great', 'JJ'),
 ('without', 'IN'),
 ('thinking', 'VBG'),
 ('about', 'IN'),
 ('it', 'PRP'),
 ('too', 'RB'),
 ('much', 'JJ'),
 ('Take', 'VB'),
 ('a', 'DT'),
 ('look', 'NN'),
 ('at', 'IN'),
 ('our', 'PRP$'),
 ('shoes', 'NNS'),
 ('for', 'IN'),
 ('children', 'NNS'),
 ('from', 'IN'),
 ('LICO', 'NNP'),
 ('-', ':'),
 ('featuring', 'VBG'),
 ('everything', 'NN'),
 ('from', 'IN'),
 ('ballet', 'NN'),
 ('pumps', 'NNS'),
 ('to', 'TO'),
 ('trainers', 'NNS'),
 ('in', 'IN'),
 ('a', 'DT'),
 ('variety', 'NN'),
 ('of', 'IN'),
 ('colours', 'NNS'),
 ('and', 'CC'),
 ('styles', 'NNS'),
 ('this', 'DT'),
 ('range', 'NN'),
 ('will', 'MD'),
 ('contain', 'VB'),
 ('something', 'NN'),
 ('for', 'IN'),
 ('even', 'RB'),
 ('the', 'DT'),
 ('pickiest', 'NN'),
 ('of', 'IN'),
 ('kids', 'NNS'),
 ('and', 'CC'),
 ('teens', 'NNS'),
 ('Glitzy', 'NNP'),
 ('decadent', 'NN'),
 ('detailed', 'VBD'),
 ('and', 'CC'),
 ('luxuriously', 'RB'),
 ('finished', 'VBN'),
 ('sweet', 'NN'),
 ('deluxe', 'NN'),
 ('has', 'VBZ'),
 ('us', 'PRP'),
 ('covered', 'VBN'),
 ('when', 'WRB'),
 ('it', 'PRP'),
 ('comes', 'VBZ'),
 ('to', 'TO'),
 ('statement', 'NN'),
 ('jewellery', 'NN'),
 ('with', 'IN'),
 ('that', 'DT'),
 ('unique', 'JJ'),
 ('individual', 'JJ'),
 ('twist', 'NN'),
 ('The', 'DT'),
 ("'Godfather", 'JJR'),
 ('of', 'IN'),
 ('Urban', 'NNP'),
 ("Fashion'", 'NNP'),
 ('Karl', 'NNP'),
 ('Kani', 'NNP'),
 ('designs', 'VBZ'),
 ('edgy', 'JJ'),
 ('fashionable', 'JJ'),
 ('hip-hop', 'NN'),
 ("men's", 'NN'),
 ('clothing', 'NN'),
 ('for', 'IN'),
 ('guys', 'NNS'),
 ('who', 'WP'),
 ('want', 'VBP'),
 ('to', 'TO'),
 ('look', 'VB'),
 ('up-to-date', 'JJ'),
 ('without', 'IN'),
 ('even', 'RB'),
 ('having', 'VBG'),
 ('to', 'TO'),
 ('think', 'VB'),
 ('about', 'IN'),
 ('it', 'PRP'),
 ('Karl', 'NNP'),
 ('Kani', 'NNP'),
 ('himself', 'PRP'),
 ('is', 'VBZ'),
 ('a', 'DT'),
 ('shining', 'VBG'),
 ('example', 'NN'),
 ('of', 'IN'),
 ('a', 'DT'),
 ('man', 'NN'),
 ("who's", 'NN'),
 ('lived', 'VBD'),
 ('the', 'DT'),
 ('American', 'JJ'),
 ('Dream', 'NNP'),
 ('-', ':'),
 ('a', 'DT'),
 ('self-taught', 'JJ'),
 ('designer', 'NN'),
 ('and', 'CC'),
 ('a', 'DT'),
 ('self-made', 'JJ'),
 ('man', 'NN'),
 ('Karl', 'NNP'),
 ('Kani', 'NNP'),
 ('spent', 'VBD'),
 ('his', 'PRP$'),
 ('youth', 'NN'),
 ('exploring', 'VBG'),
 ('his', 'PRP$'),
 ('passion', 'NN'),
 ('for', 'IN'),
 ('music', 'NN'),
 ('and', 'CC'),
 ('fashion', 'NN'),
 ('until', 'IN'),
 ('at', 'IN'),
 ('16', 'CD'),
 ('years', 'NNS'),
 ('old', 'JJ'),
 ('he', 'PRP'),
 ('started', 'VBD'),
 ('to', 'TO'),
 ('design', 'VB'),
 ('his', 'PRP$'),
 ('own', 'JJ'),
 ('clothing', 'NN'),
 ('Pretty', 'NNP'),
 ('soon', 'RB'),
 ('everyone', 'NN'),
 ('was', 'VBD'),
 ('after', 'IN'),
 ('something', 'NN'),
 ('created', 'VBN'),
 ('by', 'IN'),
 ('this', 'DT'),
 ('hip', 'NN'),
 ('young', 'JJ'),
 ('designer', 'NN'),
 ('and', 'CC'),
 ('the', 'DT'),
 ('rest', 'NN'),
 ('as', 'IN'),
 ('they', 'PRP'),
 ('say', 'VBP'),
 ('is', 'VBZ'),
 ('history', 'NN'),
 ('Today', 'NNP'),
 ('the', 'DT'),
 ('brand', 'NN'),
 ('is', 'VBZ'),
 ('internationally', 'RB'),
 ('renowned', 'VBN'),
 ('for', 'IN'),
 ('bringing', 'VBG'),
 ('fresh', 'JJ'),
 ('fashion', 'NN'),
 ('to', 'TO'),
 ('guys', 'VB'),
 ('with', 'IN'),
 ('attitude', 'NN'),
 ('its', 'PRP$'),
 ('clothing', 'NN'),
 ('has', 'VBZ'),
 ('been', 'VBN'),
 ('seen', 'VBN'),
 ('on', 'IN'),
 ('Hollywood', 'NNP'),
 ('film', 'NN'),
 ('stars', 'NNS'),
 ('and', 'CC'),
 ('rap', 'VB'),
 ('legends', 'NNS'),
 ('and', 'CC'),
 ('P', 'NNP'),
 ('Diddy', 'NNP'),
 ('himself', 'PRP'),
 ('has', 'VBZ'),
 ('cited', 'VBN'),
 ('Kani', 'NNP'),
 ('as', 'IN'),
 ('a', 'DT'),
 ('huge', 'JJ'),
 ('inspiration', 'NN'),
 ('for', 'IN'),
 ('all', 'PDT'),
 ('those', 'DT'),
 ('who', 'WP'),
 ('dream', 'VBP'),
 ('of', 'IN'),
 ('achieving', 'VBG'),
 ('big', 'JJ'),
 ('things', 'NNS'),
 ('from', 'IN'),
 ('small', 'JJ'),
 ('beginnings', 'NNS'),
 ('Kanna', 'NNP'),
 ('-', ':'),
 ('because', 'IN'),
 ('fashion', 'NN'),
 ("isn't", 'NN'),
 ('just', 'RB'),
 ('about', 'IN'),
 ('clothes!', 'NN'),
 ('If', 'IN'),
 ("there's", 'JJ'),
 ('one', 'CD'),
 ('thing', 'NN'),
 ('the', 'DT'),
 ('designers', 'NNS'),
 ('at', 'IN'),
 ('Kanna', 'NNP'),
 ('understand', 'VBP'),
 ("it's", 'JJ'),
 ('feminine', 'JJ'),
 ('fashion', 'NN'),
 ('This', 'DT'),
 ('Spanish', 'JJ'),
 ('footwear', 'NN'),
 ('company', 'NN'),
 ('has', 'VBZ'),
 ('been', 'VBN'),
 ('helping', 'VBG'),
 ('women', 'NNS'),
 ('add', 'VBP'),
 ('the', 'DT'),
 ('finishing', 'JJ'),
 ('touch', 'NN'),
 ('to', 'TO'),
 ('their', 'PRP$'),
 ('outfit', 'NN'),
 ('for', 'IN'),
 ('over', 'IN'),
 ('25', 'CD'),
 ('years', 'NNS'),
 ('Catering', 'VBG'),
 ('for', 'IN'),
 ('all', 'PDT'),
 ('those', 'DT'),
 ('who', 'WP'),
 ('appreciate', 'VBP'),
 ('high-end', 'JJ'),
 ('fashion', 'NN'),
 ("that's", 'IN'),
 ('low-fuss', 'JJ'),
 ('Kanna', 'NNP'),
 ('really', 'RB'),
 ('understands', 'VBZ'),
 ('the', 'DT'),
 ('importance', 'NN'),
 ('of', 'IN'),
 ('fashion', 'NN'),
 ("that's", 'NN'),
 ('wearable', 'JJ'),
 ('every', 'DT'),
 ('day', 'NN'),
 ('not', 'RB'),
 ('just', 'RB'),
 ('on', 'IN'),
 ('the', 'DT'),
 ('catwalks', 'NNS'),
 ('This', 'DT'),
 ('is', 'VBZ'),
 ('why', 'WRB'),
 ('only', 'RB'),
 ('the', 'DT'),
 ('finest', 'JJS'),
 ('of', 'IN'),
 ('materials', 'NNS'),
 ('go', 'VBP'),
 ('into', 'IN'),
 ('the', 'DT'),
 ('making', 'NN'),
 ('of', 'IN'),
 ('Kanna', 'NNP'),
 ('footwear', 'VBP'),
 ('to', 'TO'),
 ('ensure', 'VB'),
 ('your', 'PRP$'),
 ('feet', 'NNS'),
 ('feel', 'VBP'),
 ('comfortable', 'JJ'),
 ('every', 'DT'),
 ('time', 'NN'),
 ('you', 'PRP'),
 ('step', 'VBP'),
 ('out', 'RP'),
 ('in', 'IN'),
 ('a', 'DT'),
 ('pair', 'NN'),
 ('of', 'IN'),
 ('these', 'DT'),
 ('fabulous', 'JJ'),
 ('designs!', 'NN'),
 ('The', 'DT'),
 ('ultimate', 'JJ'),
 ('care', 'NN'),
 ('and', 'CC'),
 ('attention', 'NN'),
 ('to', 'TO'),
 ('detail', 'NN'),
 ('is', 'VBZ'),
 ('taken', 'VBN'),
 ('with', 'IN'),
 ('every', 'DT'),
 ('single', 'JJ'),
 ('pair', 'NN'),
 ('from', 'IN'),
 ('the', 'DT'),
 ('minute', 'NN'),
 ('ideas', 'JJ'),
 ('start', 'NN'),
 ('flowing', 'VBG'),
 ('at', 'IN'),
 ('the', 'DT'),
 ('design', 'NN'),
 ('board', 'NN'),
 ('to', 'TO'),
 ('the', 'DT'),
 ('second', 'JJ'),
 ('you', 'PRP'),
 ('put', 'VBP'),
 ('on', 'IN'),
 ('a', 'DT'),
 ('pair', 'NN'),
 ('of', 'IN'),
 ("women's", 'NN'),
 ('shoes', 'NNS'),
 ('by', 'IN'),
 ('Kanna', 'NNP'),
 ('Founded', 'NNP'),
 ('in', 'IN'),
 ('1987', 'CD'),
 ('the', 'DT'),
 ('haute', 'JJ'),
 ('couture', 'NN'),
 ('house', 'NN'),
 ('of', 'IN'),
 ('Christian', 'JJ'),
 ('Lacroix', 'NNP'),
 ('is', 'VBZ'),
 ('one', 'CD'),
 ('of', 'IN'),
 ('the', 'DT'),
 ('most', 'RBS'),
 ('recognized', 'JJ'),
 ('French', 'JJ'),
 ('fashion', 'NN'),
 ('houses', 'NNS'),
 ('in', 'IN'),
 ('the', 'DT'),
 ('world', 'NN'),
 ('Extravagant', 'NNP'),
 ('uses', 'VBZ'),
 ('of', 'IN'),
 ('detail', 'NN'),
 ('eccentricity', 'NN'),
 ('and', 'CC'),
 ('craftsmanship', 'NN'),
 ('are', 'VBP'),
 ('the', 'DT'),
 ('fundamentals', 'NNS'),
 ('of', 'IN'),
 ('this', 'DT'),
 ('legendary', 'JJ'),
 ('brand', 'NN'),
 ('Lacroix', 'NNP'),
 ('is', 'VBZ'),
 ('famed', 'VBN'),
 ('for', 'IN'),
 ('his', 'PRP$'),
 ('exceptional', 'JJ'),
 ('designs', 'NNS'),
 ('that', 'WDT'),
 ('are', 'VBP'),
 ('inspired', 'VBN'),
 ('by', 'IN'),
 ('the', 'DT'),
 ('beautiful', 'JJ'),
 ('landscapes', 'NNS'),
 ('of', 'IN'),
 ('Provence', 'NNP'),
 ('Venice', 'NNP'),
 ('Spain', 'NNP'),
 ('and', 'CC'),
 ('also', 'RB'),
 ('by', 'IN'),
 ('fairy', 'JJ'),
 ('tales', 'NNS'),
 ('Christian', 'JJ'),
 ('Lacroix', 'NNP'),
 ('women’s', 'NN'),
 ('handbags', 'NNS'),
 ('channel', 'VBP'),
 ('the', 'DT'),
 ('designer’s', 'JJ'),
 ('attention-getting', 'JJ'),
 ('aesthetic', 'JJ'),
 ('but', 'CC'),
 ('in', 'IN'),
 ('streamlined', 'JJ'),
 ('sophisticated', 'JJ'),
 ('designs', 'VBZ'),
 ('The', 'DT'),
 ('wide', 'JJ'),
 ('range', 'NN'),
 ('of', 'IN'),
 ('sumptuous', 'JJ'),
 ('colours', 'NNS'),
 ('available', 'JJ'),
 ('means', 'NNS'),
 ('pieces', 'NNS'),
 ('can', 'MD'),
 ('be', 'VB'),
 ('matched', 'VBN'),
 ('easily', 'RB'),
 ('with', 'IN'),
 ('your', 'PRP$'),
 ('wardrobe', 'NN'),
 ('Christian', 'NNP'),
 ('Lacroix', 'NNP'),
 ("women's", 'NN'),
 ('accessories', 'NNS'),
 ('have', 'VBP'),
 ('been', 'VBN'),
 ('specifically', 'RB'),
 ('designed', 'VBN'),
 ('with', 'IN'),
 ('busy', 'JJ'),
 ('lifestyles', 'NNS'),
 ('in', 'IN'),
 ('mind', 'NN'),
 ('Christian', 'JJ'),
 ('Lacroix', 'NNP'),
 ('tote', 'NN'),
 ('bags', 'NNS'),
 ('are', 'VBP'),
 ('practical', 'JJ'),
 ('for', 'IN'),
 ('a', 'DT'),
 ('busy', 'JJ'),
 ('day', 'NN'),
 ('rushing', 'VBG'),
 ('around', 'IN'),
 ('the', 'DT'),
 ('city', 'NN'),
 ('whilst', 'NN'),
 ('shoulder', 'NN'),
 ('bags', 'NNS'),
 ('are', 'VBP'),
 ('ideal', 'JJ'),
 ('for', 'IN'),
 ('those', 'DT'),
 ('who', 'WP'),
 ('value', 'NN'),
 ('comfort', 'NN'),
 ('in', 'IN'),
 ('their', 'PRP$'),
 ('bag', 'NN'),
 ('choice', 'NN'),
 ('Christian', 'NNP'),
 ('Lacroix’s', 'NNP'),
 ('colour', 'NN'),
 ('palette', 'NN'),
 ('is', 'VBZ'),
 ('particularly', 'RB'),
 ('sophisticated', 'JJ'),
 ('including', 'VBG'),
 ('royal', 'JJ'),
 ('blue', 'JJ'),
 ('stone', 'NN'),
 ('toned', 'VBD'),
 ('taupe', 'JJ'),
 ('deep', 'JJ'),
 ('burgundy', 'NN'),
 ('and', 'CC'),
 ('ever-classic', 'JJ'),
 ('black', 'JJ'),
 ('Founded', 'VBN'),
 ('in', 'IN'),
 ('1987', 'CD'),
 ('the', 'DT'),
 ('haute', 'JJ'),
 ('couture', 'NN'),
 ('house', 'NN'),
 ('of', 'IN'),
 ('Christian', 'JJ'),
 ('Lacroix', 'NNP'),
 ('is', 'VBZ'),
 ('one', 'CD'),
 ('of', 'IN'),
 ('the', 'DT'),
 ('most', 'RBS'),
 ('recognized', 'JJ'),
 ('French', 'JJ'),
 ('fashion', 'NN'),
 ('houses', 'NNS'),
 ('in', 'IN'),
 ('the', 'DT'),
 ('world', 'NN'),
 ('Extravagant', 'NNP'),
 ('uses', 'VBZ'),
 ('of', 'IN'),
 ('detail', 'NN'),
 ('eccentricity', 'NN'),
 ('and', 'CC'),
 ('craftsmanship', 'NN'),
 ('are', 'VBP'),
 ('the', 'DT'),
 ('fundamentals', 'NNS'),
 ('of', 'IN'),
 ('this', 'DT'),
 ('legendary', 'JJ'),
 ('brand', 'NN'),
 ('Lacroix', 'NNP'),
 ('is', 'VBZ'),
 ('famed', 'VBN'),
 ('for', 'IN'),
 ('his', 'PRP$'),
 ('exceptional', 'JJ'),
 ('designs', 'NNS'),
 ('that', 'WDT'),
 ('are', 'VBP'),
 ('inspired', 'VBN'),
 ('by', 'IN'),
 ('the', 'DT'),
 ('beautiful', 'JJ'),
 ('landscapes', 'NNS'),
 ('of', 'IN'),
 ('Provence', 'NNP'),
 ('Venice', 'NNP'),
 ('Spain', 'NNP'),
 ('and', 'CC'),
 ('also', 'RB'),
 ('by', 'IN'),
 ('fairy', 'JJ'),
 ('tales', 'NNS'),
 ('Christian', 'JJ'),
 ('Lacroix', 'NNP'),
 ('women’s', 'NN'),
 ('handbags', 'NNS'),
 ('channel', 'VBP'),
 ('the', 'DT'),
 ('designer’s', 'JJ'),
 ('attention-getting', 'JJ'),
 ('aesthetic', 'JJ'),
 ('but', 'CC'),
 ('in', 'IN'),
 ('streamlined', 'JJ'),
 ('sophisticated', 'JJ'),
 ('designs', 'VBZ'),
 ('The', 'DT'),
 ('wide', 'JJ'),
 ('range', 'NN'),
 ('of', 'IN'),
 ('sumptuous', 'JJ'),
 ('colours', 'NNS'),
 ('available', 'JJ'),
 ('means', 'NNS'),
 ('pieces', 'NNS'),
 ('can', 'MD'),
 ('be', 'VB'),
 ('matched', 'VBN'),
 ('easily', 'RB'),
 ('with', 'IN'),
 ('your', 'PRP$'),
 ('wardrobe', 'NN'),
 ('Christian', 'NNP'),
 ('Lacroix', 'NNP'),
 ("women's", 'NN'),
 ('accessories', 'NNS'),
 ('have', 'VBP'),
 ('been', 'VBN'),
 ('specifically', 'RB'),
 ('designed', 'VBN'),
 ('with', 'IN'),
 ('busy', 'JJ'),
 ('lifestyles', 'NNS'),
 ('in', 'IN'),
 ('mind', 'NN'),
 ('Christian', 'JJ'),
 ('Lacroix', 'NNP'),
 ('tote', 'NN'),
 ('bags', 'NNS'),
 ('are', 'VBP'),
 ('practical', 'JJ'),
 ('for', 'IN'),
 ('a', 'DT'),
 ('busy', 'JJ'),
 ('day', 'NN'),
 ('rushing', 'VBG'),
 ('around', 'IN'),
 ('the', 'DT'),
 ('city', 'NN'),
 ('whilst', 'NN'),
 ('shoulder', 'NN'),
 ('bags', 'NNS'),
 ('are', 'VBP'),
 ('ideal', 'JJ'),
 ('for', 'IN'),
 ('those', 'DT'),
 ('who', 'WP'),
 ('value', 'NN'),
 ('comfort', 'NN'),
 ('in', 'IN'),
 ('their', 'PRP$'),
 ('bag', 'NN'),
 ('choice', 'NN'),
 ('Christian', 'NNP'),
 ('Lacroix’s', 'NNP'),
 ('colour', 'NN'),
 ('palette', 'NN'),
 ('is', 'VBZ'),
 ('particularly', 'RB'),
 ('sophisticated', 'JJ'),
 ('including', 'VBG'),
 ('royal', 'JJ'),
 ('blue', 'JJ'),
 ('stone', 'NN'),
 ('toned', 'VBD'),
 ('taupe', 'JJ'),
 ('deep', 'JJ'),
 ('burgundy', 'NN'),
 ('and', 'CC'),
 ('ever-classic', 'JJ'),
 ('black', 'JJ'),
 ('Founded', 'VBN'),
 ('in', 'IN'),
 ('1987', 'CD'),
 ('the', 'DT'),
 ('haute', 'JJ'),
 ('couture', 'NN'),
 ('house', 'NN'),
 ('of', 'IN'),
 ('Christian', 'JJ'),
 ('Lacroix', 'NNP'),
 ('is', 'VBZ'),
 ('one', 'CD'),
 ('of', 'IN'),
 ('the', 'DT'),
 ('most', 'RBS'),
 ('recognized', 'JJ'),
 ('French', 'JJ'),
 ('fashion', 'NN'),
 ('houses', 'NNS'),
 ('in', 'IN'),
 ('the', 'DT'),
 ('world', 'NN'),
 ('Extravagant', 'NNP'),
 ('uses', 'VBZ'),
 ('of', 'IN'),
 ('detail', 'NN'),
 ('eccentricity', 'NN'),
 ('and', 'CC'),
 ('craftsmanship', 'NN'),
 ('are', 'VBP'),
 ('the', 'DT'),
 ('fundamentals', 'NNS'),
 ('of', 'IN'),
 ('this', 'DT'),
 ('legendary', 'JJ'),
 ('brand', 'NN'),
 ('Lacroix', 'NNP'),
 ('is', 'VBZ'),
 ('famed', 'VBN'),
 ('for', 'IN'),
 ('his', 'PRP$'),
 ('exceptional', 'JJ'),
 ('designs', 'NNS'),
 ('that', 'WDT'),
 ('are', 'VBP'),
 ('inspired', 'VBN'),
 ('by', 'IN'),
 ('the', 'DT'),
 ('beautiful', 'JJ'),
 ('landscapes', 'NNS'),
 ('of', 'IN'),
 ('Provence', 'NNP'),
 ('Venice', 'NNP'),
 ('Spain', 'NNP'),
 ('and', 'CC'),
 ('also', 'RB'),
 ('by', 'IN'),
 ('fairy', 'JJ'),
 ('tales', 'NNS'),
 ('Christian', 'JJ'),
 ('Lacroix', 'NNP'),
 ('women’s', 'NN'),
 ('handbags', 'NNS'),
 ('channel', 'VBP'),
 ('the', 'DT'),
 ('designer’s', 'JJ'),
 ('attention-getting', 'JJ'),
 ('aesthetic', 'JJ'),
 ('but', 'CC'),
 ('in', 'IN'),
 ('streamlined', 'JJ'),
 ('sophisticated', 'JJ'),
 ('designs', 'VBZ'),
 ('The', 'DT'),
 ('wide', 'JJ'),
 ('range', 'NN'),
 ('of', 'IN'),
 ('sumptuous', 'JJ'),
 ('colours', 'NNS'),
 ('available', 'JJ'),
 ('means', 'NNS'),
 ('pieces', 'NNS'),
 ('can', 'MD'),
 ('be', 'VB'),
 ('matched', 'VBN'),
 ('easily', 'RB'),
 ('with', 'IN'),
 ('your', 'PRP$'),
 ('wardrobe', 'NN'),
 ('Christian', 'NNP'),
 ('Lacroix', 'NNP'),
 ("women's", 'NN'),
 ('accessories', 'NNS'),
 ('have', 'VBP'),
 ('been', 'VBN'),
 ('specifically', 'RB'),
 ('designed', 'VBN'),
 ('with', 'IN'),
 ('busy', 'JJ'),
 ('lifestyles', 'NNS'),
 ('in', 'IN'),
 ('mind', 'NN'),
 ('Christian', 'JJ'),
 ('Lacroix', 'NNP'),
 ('tote', 'NN'),
 ('bags', 'NNS'),
 ('are', 'VBP'),
 ('practical', 'JJ'),
 ('for', 'IN'),
 ('a', 'DT'),
 ('busy', 'JJ'),
 ('day', 'NN'),
 ('rushing', 'VBG'),
 ('around', 'IN'),
 ('the', 'DT'),
 ('city', 'NN'),
 ('whilst', 'NN'),
 ('shoulder', 'NN'),
 ('bags', 'NNS'),
 ('are', 'VBP'),
 ('ideal', 'JJ'),
 ...]
In [319]:
jjword = [word for word,pos in post if pos == 'JJ']
In [326]:
sejj = set(jjword)
In [336]:
for sej in sejj:
    if ',' in sej:
        #print(', is here')
        sej.replace(',', '')
    elif '.' in sej:
        #print('. is here')
        sej.replace(',', '')
   
, is here
, is here
, is here
. is here
. is here
. is here
. is here
, is here
, is here
, is here
. is here
, is here
, is here
, is here
, is here
, is here
. is here
. is here
, is here
, is here
. is here
, is here
. is here
. is here
, is here
, is here
, is here
, is here
, is here
, is here
. is here
, is here
. is here
. is here
. is here
. is here
. is here
, is here
, is here
, is here
, is here
, is here
, is here
. is here
. is here
In [298]:
propernouns = [word for word,pos in post if pos == 'NN']
In [351]:
for sej in propernouns:
    if ',' in sej:
        #print(', is here')
        sej.replace(',', '')
    elif '.' in sej:
        print('. is here')
        #sej.replace('.', '')
        #print(sej)
        s = sej.strip('.')
        print(s)
. is here
style
. is here
style
. is here
clothing
. is here
beginnings
. is here
fashion
. is here
catwalks
. is here
world
. is here
brand
. is here
tales
. is here
designs
. is here
wardrobe
. is here
mind
. is here
choice
. is here
black
. is here
world
. is here
brand
. is here
tales
. is here
designs
. is here
wardrobe
. is here
mind
. is here
choice
. is here
black
. is here
world
. is here
brand
. is here
tales
. is here
designs
. is here
wardrobe
. is here
mind
. is here
choice
. is here
black
. is here
world
. is here
brand
. is here
tales
. is here
designs
. is here
wardrobe
. is here
mind
. is here
choice
. is here
black
. is here
world
. is here
brand
. is here
tales
. is here
designs
. is here
wardrobe
. is here
mind
. is here
choice
. is here
black
. is here
district
. is here
travel
. is here
label
. is here
style
. is here
brand
. is here
fashionistas
. is here
today
. is here
collection
. is here
style
. is here
world
. is here
brand
. is here
inspirations
. is here
occasions
. is here
designer
. is here
hats
. is here
designs
. is here
feminine
. is here
them
. is here
women
. is here
styles
. is here
elegance
. is here
summer
. is here
winters
. is here
catwalks
. is here
accessories
. is here
choice
. is here
quality
. is here
footwear
. is here
offer
. is here
material
. is here
them
. is here
girls
. is here
label
. is here
season
. is here
style
. is here
girls
. is here
label
. is here
season
. is here
style
. is here
children
. is here
girls
. is here
spirit
. is here
materials
. is here
outfit
. is here
brand
. is here
boots
. is here
crowd
. is here
designs
. is here
crowd
. is here
designs
In [341]:
ppset = set(propernouns)
In [302]:
doword = [word for word,pos in post if pos == 'VB']
In [316]:
for prpno in propernouns:
    prprep = (prpno.replace(',', ''))
    prprez = (prprep.replace('.', ''))
In [310]:
random.sample(propernouns, 5)
Out[310]:
['spandex', 'perfect', 'mind.', 'women’s', 'palette']
In [311]:
random.sample(doword, 5)
Out[311]:
['feel', 'want', 'look', 'be', 'offer']
In [455]:
'''
for totp in range(1, totpag):
    reqph = requests.get('https://api.zalando.com/brands?page={}'.format(totp))
    alljs = (reqph.json())
    brnconz = len(alljs['content'])
    for sel in range(0, brnconz):
        #print(alljs['content'][sel]['name'])
        namsl = (alljs['content'][sel]['name'])
        namcd = (alljs['content'][sel]['key'])
        namsq = namsl.replace(' ', '-')
        
        mamsq = namsq.lower
        print(namcd)
        print(mamsq())
        try:
            logurl = (alljs['content'][sel]['logoUrl'])
            print(logurl)
            response = requests.get(logurl, stream=True)
            print(response.headers)
            print(response.history)
            #print(response.)
            with open ('/home/{}/zalando/posts/'.format(myusr) + fulyr + '.md', 'w') as oppost:
                for toda in imgtoday:
                    oppost.write(('!' + '[' + toda.strip('.jpg') + '](' + galpath + toda + ')\n\n' + '[' + toda.strip('-reference.jpg') + ']' + '(https://reddit.com/u/' + toda.strip('-reference.jpg') + ')' + '\n\n'))

            with open('{}{}.png'.format(zalgal, str(totp)), 'wb') as out_file:
                
                shutil.copyfileobj(response.raw, out_file)
                del response
        except KeyError:
            continue
            
'''
Out[455]:
"\nfor totp in range(1, totpag):\n    reqph = requests.get('https://api.zalando.com/brands?page={}'.format(totp))\n    alljs = (reqph.json())\n    brnconz = len(alljs['content'])\n    for sel in range(0, brnconz):\n        #print(alljs['content'][sel]['name'])\n        namsl = (alljs['content'][sel]['name'])\n        namcd = (alljs['content'][sel]['key'])\n        namsq = namsl.replace(' ', '-')\n        \n        mamsq = namsq.lower\n        print(namcd)\n        print(mamsq())\n        try:\n            logurl = (alljs['content'][sel]['logoUrl'])\n            print(logurl)\n            response = requests.get(logurl, stream=True)\n            print(response.headers)\n            print(response.history)\n            #print(response.)\n            with open ('/home/{}/zalando/posts/'.format(myusr) + fulyr + '.md', 'w') as oppost:\n                for toda in imgtoday:\n                    oppost.write(('!' + '[' + toda.strip('.jpg') + '](' + galpath + toda + ')\n\n' + '[' + toda.strip('-reference.jpg') + ']' + '(https://reddit.com/u/' + toda.strip('-reference.jpg') + ')' + '\n\n'))\n\n            with open('{}{}.png'.format(zalgal, str(totp)), 'wb') as out_file:\n                \n                shutil.copyfileobj(response.raw, out_file)\n                del response\n        except KeyError:\n            continue\n            \n"
In [ ]:
bloglisn
In [ ]:
zalaart = requests.get('https://api.zalando.com/articles')
In [ ]:
print('hello')
In [56]:
zaljs = zalaart.json()
In [118]:
len(zaljs['content'])
Out[118]:
20
In [117]:
zaljs['content'][0]['categoryKeys']
Out[117]:
['catalog',
 'women',
 'womens-sale',
 'womens-clothing-sale',
 'womens-dresses-sale',
 'all',
 'sale',
 'maxi-dresses-sale',
 'premium-womens-sale',
 'premium-womens-clothing-sale',
 'premium-womens-dresses-sale']
In [59]:
zalpage = zaljs['totalPages']
In [69]:
zalpage
Out[69]:
10108
In [420]:
reqartz = requests.get('https://api.zalando.com/articles?pageSize=200')
In [417]:
artjsz = reqartz.json()
In [422]:
arjsct = artjsz['content']
In [424]:
arle = len(arjsct)
In [452]:
for arj in arjsct:
    artnam = (arj['name'])
    artimg = (arj['media']['images'][0]['largeUrl'])
    artpric = (arj['units'][0]['price']['value'])
    nacd = (arj['brand']['key'])
    branam = (arj['brand']['name'])
    
    namsq = branam.replace(' ', '-')

    mamsq = namsq.lower()
    
    print(mamsq)
    with open ('/home/{}/zalando/posts/{}.md'.format(myusr, nacd), 'a') as oppost:
    #oppost.write('![{}'.format())
        oppost.write('\n\n{}\n\n{}\n![{}]({})'.format(artnam, str(artpric), nacd, artimg))
    #oppost.write(('![' + mamsq() + '](' + logurl + ')\n\n' + mamsq() + '\n\n' + depa.text + '\n\n' + desp.text))

    with open ('/home/{}/zalando/posts/{}.meta'.format(myusr, nacd), 'w') as opmetat:
            #opmetat.write("{}".format(str(curtim))
        opmetat.write('.. title: {}\n.. slug: {}\n.. date: {}\n.. tags: \n.. link:\n.. description:\n.. type: text'.format(nacd, nacd, curtim))
escada
desigual
tom-tailor-denim
dorothy-perkins-curve
vila
bench
new-balance
marc-o'polo-denim
michael-kors-access
dachstein
nike-sportswear
zalando-essentials
liebeskind
guess
adidas-performance
hilfiger-denim
anna-field
elisabetta-franchi
s.oliver
morgan
kavat
esprit-maternity
nike-performance
tom-tailor
dr.-martens
river-island
furla
hilfiger-denim
q/s-designed-by
tiffosi
marc-o'polo
nudie-jeans
arena
bik-bok
flexfit
free-people
bellybutton
pier-one
mila-louise
adidas-performance
filippa-k
tiger-of-sweden-jeans
liu-jo-jeans
rebecca-minkoff
versace-jeans
benetton
plein-sud
dorothy-perkins
lyle-&-scott
venice-beach
ecco
schiesser
fossil
blauer
tamaris
gap
hilfiger-denim
khujo
marciano-guess
disney
replay
oakley
q/s-designed-by
hummel
your-turn-active
mason-garments
element
pretty-ballerinas
s.oliver
live-unlimited-london
lacoste
coolway
friboo
converse
jack-&-jones
new-look-curves
noppies
benetton
boxfresh
boxfresh
selected-femme
zalando-essentials
tommy-hilfiger
gola
amoralia
diesel
opposuits
jo-ghost
zizzi
supra
new-look
softclox
dr.denim
calvin-klein
tommy-hilfiger
superga
kamik
esprit-sports
esprit-sports
plein-sud
tommy-hilfiger
mamalicious
edc-by-esprit
evans
vans
fossil
disney
berghaus
vila
versace-jeans
tiger-of-sweden
love-moschino
wallis
adidas-performance
pantofola-d`oro
selected-homme
opus
ben-sherman
pier-one
polo-ralph-lauren
calvin-klein
kost
evans
molly-bracken
michael-kors-access
nike-sb
adidas-performance
nike-performance
women-secret
tommy-hilfiger
michael-michael-kors
only
love-moschino
head-over-heels-by-dune
gap
hobbs
benetton
brunotti
religion
michael-kors
j.lindeberg
nike-performance
roxy
uvex
only
molly-bracken
zizzi
s.oliver
new-look-curves
envie-de-fraise
pepe-jeans
calvin-klein-jeans
schott-nyc
versace-collection
schott-nyc
ziener
wallis-petite
calvin-klein
the-north-face
diesel
dune-london
diesel
art
wallis
adidas-performance
adidas-performance
pier-one
fabrizio
only
liebeskind
calando
boxfresh
vero-moda
tommy-hilfiger
nike-performance
pepe-jeans
reebok
fullstop.
vero-moda
pepe-jeans
nike-performance
adidas-originals
timberland
selected-homme
craft
pier-one
scotch-&-soda
wallis
bruuns-bazaar
skagen
nike-performance
olymp-luxor
carter's
m-missoni
calvin-klein-jeans
eleven-paris
nana-judy
steiff-collection
g-star
michael-kors
In [453]:
'''
zaart = requests.get('https://api.zalando.com/articles?pageSize=200')
zajs = zaart.json()
print(zal)
artnam = (zajs['content'][zal]['name'])
    
artimg = (zajs['content'][zal]['media']['images'][0]['largeUrl'])
artpric = (zajs['content'][zal]['units'][0]['price']['value'])

print(zajs['content'][zal]['brand'])
    
nacd = (zajs['content'][zal]['brand']['key'])
    
print(zajs['content'][zal]['brand']['name'])
    
    
with open ('/home/{}/zalando/posts/{}.md'.format(myusr, nacd), 'a') as oppost:
    #oppost.write('![{}'.format())
    oppost.write('\n\n{}\n\n{}\n![{}]({})'.format(artnam, str(artpric), nacd, artimg))
    #oppost.write(('![' + mamsq() + '](' + logurl + ')\n\n' + mamsq() + '\n\n' + depa.text + '\n\n' + desp.text))

with open ('/home/{}/zalando/posts/{}.meta'.format(myusr, nacd), 'w') as opmetat:
            #opmetat.write("{}".format(str(curtim))
            opmetat.write('.. title: {}\n.. slug: {}\n.. date: {}\n.. tags: \n.. link:\n.. description:\n.. type: text'.format(namcd, namcd, curtim))
'''
Out[453]:
'\nzaart = requests.get(\'https://api.zalando.com/articles?pageSize=200\')\nzajs = zaart.json()\nprint(zal)\nartnam = (zajs[\'content\'][zal][\'name\'])\n    \nartimg = (zajs[\'content\'][zal][\'media\'][\'images\'][0][\'largeUrl\'])\nartpric = (zajs[\'content\'][zal][\'units\'][0][\'price\'][\'value\'])\n\nprint(zajs[\'content\'][zal][\'brand\'])\n    \nnacd = (zajs[\'content\'][zal][\'brand\'][\'key\'])\n    \nprint(zajs[\'content\'][zal][\'brand\'][\'name\'])\n    \n    \nwith open (\'/home/{}/zalando/posts/{}.md\'.format(myusr, nacd), \'a\') as oppost:\n    #oppost.write(\'![{}\'.format())\n    oppost.write(\'\n\n{}\n\n{}\n![{}]({})\'.format(artnam, str(artpric), nacd, artimg))\n    #oppost.write((\'![\' + mamsq() + \'](\' + logurl + \')\n\n\' + mamsq() + \'\n\n\' + depa.text + \'\n\n\' + desp.text))\n\nwith open (\'/home/{}/zalando/posts/{}.meta\'.format(myusr, nacd), \'w\') as opmetat:\n            #opmetat.write("{}".format(str(curtim))\n            opmetat.write(\'.. title: {}\n.. slug: {}\n.. date: {}\n.. tags: \n.. link:\n.. description:\n.. type: text\'.format(namcd, namcd, curtim))\n'
In [ ]:
 
In [454]:
'''
for zal in range(0, zalpage):
    zaart = requests.get('https://api.zalando.com/articles')
    zajs = zaart.json()
    print(zal)
    artnam = (zajs['content'][zal]['name'])
    
    artimg = (zajs['content'][zal]['media']['images'][0]['largeUrl'])
    artpric = (zajs['content'][zal]['units'][0]['price']['value'])
    
    print(zajs['content'][zal]['brand'])
    
    nacd = (zajs['content'][zal]['brand']['key'])
    
    print(zajs['content'][zal]['brand']['name'])
    
    
    with open ('/home/{}/zalando/posts/{}.md'.format(myusr, nacd), 'a') as oppost:
            #oppost.write('![{}'.format())
            oppost.write('\n\n{}\n\n{}\n![{}]({})'.format(artnam, str(artpric), nacd, artimg))
            #oppost.write(('![' + mamsq() + '](' + logurl + ')\n\n' + mamsq() + '\n\n' + depa.text + '\n\n' + desp.text))
        
        
    #try:
    #    stufav = (zajs['content'][zal]['available'])
    #    if stufav == True:
    #        print('yeah in stock')
    #    elif stufav == False:
    #        print('not in stock')
    #except IndexError:
    #    continue
    
        
    
    #try:
    #    print(zajs['content'][zal]['available'])
    #except KeyError:
    #    continue
    
'''    
Out[454]:
"\nfor zal in range(0, zalpage):\n    zaart = requests.get('https://api.zalando.com/articles')\n    zajs = zaart.json()\n    print(zal)\n    artnam = (zajs['content'][zal]['name'])\n    \n    artimg = (zajs['content'][zal]['media']['images'][0]['largeUrl'])\n    artpric = (zajs['content'][zal]['units'][0]['price']['value'])\n    \n    print(zajs['content'][zal]['brand'])\n    \n    nacd = (zajs['content'][zal]['brand']['key'])\n    \n    print(zajs['content'][zal]['brand']['name'])\n    \n    \n    with open ('/home/{}/zalando/posts/{}.md'.format(myusr, nacd), 'a') as oppost:\n            #oppost.write('![{}'.format())\n            oppost.write('\n\n{}\n\n{}\n![{}]({})'.format(artnam, str(artpric), nacd, artimg))\n            #oppost.write(('![' + mamsq() + '](' + logurl + ')\n\n' + mamsq() + '\n\n' + depa.text + '\n\n' + desp.text))\n        \n        \n    #try:\n    #    stufav = (zajs['content'][zal]['available'])\n    #    if stufav == True:\n    #        print('yeah in stock')\n    #    elif stufav == False:\n    #        print('not in stock')\n    #except IndexError:\n    #    continue\n    \n        \n    \n    #try:\n    #    print(zajs['content'][zal]['available'])\n    #except KeyError:\n    #    continue\n    \n"
In [ ]:
 

Comments

Comments powered by Disqus