Python regular small application

Tmall adds category rules and upgrades merchants to expand operations. Summary: Tmall will take effect on June 27. A new rule will regulate the expansion of the business scope of Tmall’s existing stores and strengthen the standardization of new categories of stores. . New retail leads the arrival of consumption upgrades. More and more merchants have also begun to try to adjust their product structure, and their demands for expanding their business scope are growing. In order to better serve merchants, Tmall will take effect on June 27 with a new regulation that regulates the expansion of the business scope of existing stores and strengthens the standardization of new categories in stores. In this rule change, Tmall still embraces high-quality brands, high-quality services, and high-quality products, and will also conduct selective recruitment based on market demand and industry characteristics. For example, a merchant wants to apply for adding category A. If category A is not in the corresponding Tmall targeted investment brand library, you can try to apply for self-recommended addition. If the brand influence and qualification requirements are evaluated, the addition can be successful. In addition, Tmall will tighten the requirements on the authorized chain of franchised stores for some categories of mothers and infants, strengthen the review of the supply chain, and also keep abreast of changes in policies and regulations to ensure the real-time compliance of business qualifications. Consumers should take good care of the customs and stand their posts to fully protect the shopping rights and interests of consumers. This rule adjustment will come into effect on June 27, 2017. Merchants who need to add categories and meet the conditions can click the link below to view the application process, or go directly to "Merchant Center - Brand and Category Management" to submit an application . Application process for new brands in Tmall stores: https://service.tmall.com/support/tmall/knowledge-1124487.htm   Application process for new categories in Tmall stores: https://service.tmall. com/support/tmall/knowledge-1126642.htm?spm =a225r.8199751.0.0.RBQ7mK The details of the Tmall add-on category specifications are as follows: Tmall in-store application for new categories:  https://rule.tmall .com/tdetail-5898.htm?spm=a2177.7731966.0.0.9Di4lN&tag=self Tmall in-store application for new brand rules:  https://rule.tmall.com/tdetail-5900.htm?spm =a2177.7731966.0.0.9Di4lN&tag=self
Chia Tai’s retail business is fully connected to JD Daojia:

how to extract content other than URL

 

 After analyzing the characteristics, there are blank characters at the end of each url

 

# encoding: utf-8


import re
import urllib
regex = re.compile(r'http[s]?://\S*\s+', re.IGNORECASE)
'''regex = re.compile(r'(https)', re.IGNORECASE)'''
content=u"""Tmall adds category rules and upgrades merchants to expand their operations. Summary: On June 27th, Tmall will take effect. Standardization of new categories in stores.\  
New retail leads the arrival of consumption upgrades. More and more merchants have also begun to try to adjust their product structure, and their demands for expanding their business scope are growing. In order to better serve merchants, Tmall will take effect on June 27th with a new regulation that regulates the expansion of the business scope of existing stores. \
Strengthen the standardization of new categories in stores. In this rule change, Tmall still embraces high-quality brands, high-quality services, and high-quality products, and will also conduct selective recruitment based on market demand and industry characteristics. For example, a business wants to apply for adding category A, \
If category A is not in the corresponding Tmall targeted investment brand library, you can try to apply for self-recommended addition. If the brand influence and qualification requirements are evaluated, the addition can be successful. In addition, Tmall will tighten the requirements on the authorized chain of franchised stores for some categories of mothers and infants, \
Strengthen supply chain review, and at the same time, keep abreast of changes in policies and regulations to ensure real-time compliance of merchants' business qualifications, so as to ensure consumers' rights and interests in shopping. \
This rule adjustment will come into effect on June 27, 2017. Merchants who need to add categories and meet the conditions can click the link below to view the application process, or go directly to "Merchant Center - Brand and Category Management" to submit an application . \
The new brand application process for Tmall stores: https://service.tmall.com/support/tmall/knowledge-1124487.htm \
Application process for new categories in Tmall stores: https://service.tmall.com/support/tmall/knowledge-1126642.htm?spm=a225r.8199751.0.0.RBQ7mK \
The details of Tmall's add-on category specifications are as follows: \ 
Tmall in-store application details for new categories: https://rule.tmall.com/tdetail-5898.htm?spm=a2177.7731966.0.0.9Di4lN&tag=self \
Tmall in-store application for new brand rules: https://rule.tmall.com/tdetail-5900.htm?spm=a2177.7731966.0.0.9Di4lN&tag=self \
Chia Tai's retail business is fully connected to JD Daojia: the number of orders is dazzling"""

m = regex.split(content)
print ''.join(m).encode('utf-8')

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326894992&siteId=291194637