यह पुस्तक क्यों पढ़ें? क्योंकि यह आपके प्रदर्शन को अनुकूलित करने के लिए महत्वपूर्ण है। क्योंकि इससे पता चलता है कि उसके बाद मुख्य निर्देशांक नेताओं के चरित्र और कौशल का निर्माण कर रहे हैं, इस पर प्रकाश डालते हुए कि उनके लिए अपना प्रभाव बढ़ाना क्या महत्वपूर्ण है।
एक ही डोमेन में बाजार पर अन्य की तुलना में इस पुस्तक की आवश्यक विशेषता यह है कि यह उदाहरणों के माध्यम से एक नेता की आदर्श क्षमता का वर्णन करती है। मैंने कभी यह दावा नहीं किया कि एक अच्छा नेता बनना आसान है, लेकिन अगर लोग करेंगे तो...
कुछ नेताओं के लिए, "अग्रणी" एक शतरंज के खेल से अधिक मिलता-जुलता है, जो चतुराई और चतुराई का खेल है; दूसरों के लिए इसका मतलब है मौका का खेल, एक ऐसा खेल जो उन्हें लगता है कि वे हर बार एक ही कार्ड पर सब कुछ दांव पर लगाकर जीत सकते हैं।
मैंने यह पुस्तक लिखी है जो एक सरल तरीके से व्यक्तिगत विकास को नेतृत्व के साथ जोड़ती है, बिल्कुल एक पहेली की तरह, जहाँ आपको सामान्य छवि को फिर से बनाने के लिए दिए गए सभी टुकड़ों का मिलान करना होता है।
इस पुस्तक का उद्देश्य आपको ठोस उदाहरणों के माध्यम से जानकारी प्रदान करना है और आपको यह दिखाना है कि दूसरों को चीजों को आपके समान कोण से देखने की क्षमता कैसे प्राप्त करें।
इसे एक सहमति के बिना, पुस्तक एक सामान्य व्यक्ति की कोशिश का प्रतिनिधित्व कर रही है - लेखक - जो सरल शब्दों, तथ्यों और सामान्य उदाहरणों के माध्यम से सामान्य व्यक्ति को अपना स्वामी बनने की अपनी खोज में साहस और आशावाद पैदा करता है और कौन जानता है। .. शायद एक नेता भी।
एचटीएमएल पृष्ठों का एक कोड उदाहरण जिसे पाइथन कोड के साथ संशोधित किया जाएगा। उपरोक्त पाठ को .html फ़ाइल में कॉपी करें, इसे स्थान पर सहेजेंसी: \ फ़ोल्डर 1
xmlns="http://www.w3.org/1999/xhtml"dir="ltr"lang="ro">HTML टैग (पार्सिंग) को बदलने के लिए पायथन और रेगेक्स के साथ बैच प्रोसेसर कैसे बनाएं नेकुलाई फंताानारूrel="canonical"href="https://MY-WEBSITE.COM"/>name="description"content="I LOVE HTML and CSS"/>name="keywords"content="abordarea frontala a lucrurilor neelucidate"/>name="abstract"content="My laptop works just fine"/>name="Subject"content="I think I need a new car."/>property="og:url"content="https://otherwebsite.com"/>property="og:title"content="Nobody is here?"/>property="og:description"content="Dance is my passion."/>
नीचे पावरशेल कोड डेटा को पार्स करके HTML टैग की सामग्री को अन्य टैग में कॉपी करेगा। आपको केवल टैग भरने की जरूरत है<शीर्षक>चार<मेटा नाम = "विवरण" ... />
importrequestsimportre# Path to english folder 1
english_folder1 =r"c:\Folder1"# Path to english folder 2
english_folder2 =r"c:\Folder1"
extension_file =".html"
use_parse_folder =True#Face folder nou daca pui True, iar daca pui False redenumeste fisierele in acelasi folderimportos
en1_directory = os.fsencode(english_folder1)
en2_directory = os.fsencode(english_folder2)
print('Going through english folder')
for file in os.listdir(en1_directory):
filename = os.fsdecode(file)
print(filename)
if filename =='y_key_e479323ce281e459.html'or filename =='TS_4fg4_tr78.html':
continueif filename.endswith(extension_file):
withopen(os.path.join(english_folder1, filename), encoding='utf-8') as html:
html = html.read()
try:
withopen(os.path.join(english_folder2, filename), encoding='utf-8') as en_html:
en_html = en_html.read()
ifFalse: # if True: will Parse also the content that starts from to and so ontry:
comment_body = re.search('.+', html, flags=re.DOTALL)[0]
en_html = re.sub('.+', comment_body, en_html, flags=re.DOTALL)
except:
passtry:
comment_body2 = re.search('.+', html, flags=re.DOTALL)[0]
en_html = re.sub('.+', comment_body2, en_html, flags=re.DOTALL)
except:
passtry:
comment_body3 = re.search('.+', html, flags=re.DOTALL)[0]
en_html = re.sub('.+', comment_body3, en_html, flags=re.DOTALL)
except:
pass# title to metatry:
title = re.search('HTML टैग (पार्सिंग) को बदलने के लिए पायथन और रेगेक्स के साथ बैच प्रोसेसर कैसे बनाएं नेकुलाई फंताानारू', html)[0]
title_content = re.search('>(.+)<', title)[1]
except:
passtry:
meta_og_title = re.search('', en_html)[0]
new_meta_og_title = re.sub(r'content=".+"', f'content="{title_content}"', meta_og_title)
en_html = en_html.replace(meta_og_title, new_meta_og_title)
except:
passtry:
meta_keywords = re.search('', en_html)[0]
new_meta_keywords = re.sub(r'content=".+"', f'content="{title_content}"', meta_keywords)
en_html = en_html.replace(meta_keywords, new_meta_keywords)
except:
passtry:
meta_abstract = re.search('', en_html)[0]
new_meta_abstract = re.sub(r'content=".+"', f'content="{title_content}"', meta_abstract)
en_html = en_html.replace(meta_abstract, new_meta_abstract)
except:
passtry:
meta_Subject = re.search('', en_html)[0]
new_meta_Subject = re.sub(r'content=".+"', f'content="{title_content}"', meta_Subject)
en_html = en_html.replace(meta_Subject, new_meta_Subject)
except:
passtry:
headline = re.search('"headline":.+', en_html)[0]
new_headline = re.sub(r':.+', f': "{title_content}",', headline)
en_html = en_html.replace(headline, new_headline)
except:
passtry:
keywords = re.search('"keywords": "HTML टैग (पार्सिंग) को बदलने के लिए पायथन और रेगेक्स के साथ बैच प्रोसेसर कैसे बनाएं नेकुलाई फंताानारू",
new_keywords = re.sub(r':.+', f': "{title_content}",', keywords)
en_html = en_html.replace(keywords, new_keywords)
except:
pass# canonical to meta og:url and @idtry:
canonical_content = re.search('', html)[1]
except:
passtry:
og_url = re.search('', en_html)[0]
new_og_url = re.sub(r'content=".+"', f'content="{canonical_content}"', og_url)
en_html = en_html.replace(og_url, new_og_url)
except:
passtry:
id= re.search('"@id":.+', en_html)[0]
new_id = re.sub(r':.+', f': "{canonical_content}"', id)
en_html = en_html.replace(id, new_id)
except:
pass# meta description to og:description and descriptiontry:
meta = re.search(']
meta_description = re.search(']
except:
passtry:
og_description = re.search('', en_html)[0]
new_og_description = re.sub(r'content=".+"', f'content="{meta_description}"', og_description)
en_html = en_html.replace(og_description, new_og_description)
except:
passtry:
description = re.search('"description": "HTML टैग (पार्सिंग) को बदलने के लिए पायथन और रेगेक्स के साथ बैच प्रोसेसर कैसे बनाएं नेकुलाई फंताानारू",
new_description = re.sub(r':.+', f': "{meta_description}",', description)
en_html = en_html.replace(description, new_description)
except:
passtry:
en_html = re.sub(', meta, en_html)
except:
passtry:
en_html = re.sub('HTML टैग (पार्सिंग) को बदलने के लिए पायथन और रेगेक्स के साथ बैच प्रोसेसर कैसे बनाएं नेकुलाई फंताानारू', title, en_html)
except:
passexcept FileNotFoundError:
continueprint(f'{filename} parsed')
if use_parse_folder:
try:
withopen(os.path.join(english_folder2+r'\parsed', 'parsed_'+filename), 'w', encoding='utf-8') as new_html:
new_html.write(en_html)
except:
os.mkdir(english_folder2+r'\parsed')
withopen(os.path.join(english_folder2+r'\parsed', 'parsed_'+filename), 'w', encoding='utf-8') as new_html:
new_html.write(en_html)
else:
withopen(os.path.join(english_folder2, 'parsed_'+filename), 'w', encoding='utf-8') as html:
html.write(en_html)
वैकल्पिक। यहां एक regex अभिव्यक्ति है जो HTML पृष्ठ में "कीवर्ड" टैग को बदल देगा, प्रत्येक शब्द के बाद अल्पविराम जोड़ देगा।
नोटपैड ++ के साथ उपयोग करें -> सीटीआर + एफ -> जांचें: नियमित अभिव्यक्ति