However, early Buddhist iconography often flanks the Buddha with heavily-armed, ferocious-looking deities who trample demons underfoot. Such a focus on martial prowess may seem at odds with a religion as dedicated to non-violence as Buddhism. Before long, rival warlords would entreat the warrior monks to help in their skirmishes. According to legend, the monastery’s fighting tradition evolved from a group of monks who were martial artists before taking orders, and taught their fellow brothers via perfecting household chores like sweeping, collecting firewood, and fetching buckets of river water. 495 on the forested slopes of China’s sacred Mount Songshan in what is today Henan province’s Dengfeng county. “My parents had no idea what was wrong with me, but they believed Buddha could save my life,“ says Shi. Partly in thanks for the supposed divine intervention, and partly to ward off future malaise, Shi’s parents, both devout Buddhists, decided to take him to the Shaolin Temple to recuperate. He performed acupuncture on Shi, who quickly roused. After Shi grew cold and unresponsive, his parents thought he had died and were preparing to dispose of his body when a passing medicine man noticed their distraught weeping and asked to see the child. Shi fell extremely ill as a toddler, forcing his father to sell the family’s few prized possessions to pay for doctors. It’s a life that has transported Shi from abject poverty in rural China to performing kung fu on behalf of its communist government, defection to the U.S., and then training some of Hollywood’s biggest names, like Wesley Snipes, Bokeem Woodbine, and WuTang Clan’s RZA-who dubbed Shi a “real life superhero.” The relentless quest, he says, is to “sharpen my life.” “I have private students, classes, and train myself every day,” Shi tells TIME via a Zoom call from the USA Shaolin Temple, which he established in New York City in 1994. And on the brink of his sixth decade in this earthly realm, Shi still takes pleasure in passing on the secrets of kung fu and Chan (Zen) Buddhism to both movie stars and harassed office workers. He is a living legend in the world of martial arts, a 34th generation warrior monk from China’s legendary Shaolin temple who can break bricks with his bare hands, execute upside down flying kicks, and bend razor-sharp spears with his neck. Not that Shi’s age-defying dexterity should be surprising. But when a 40-something journalist asks a 59-year-old interviewee to confirm his age, it’s not really appropriate to lift a straight-kneed leg over your head in response. The full script, together with the YF API scraping, can be found at GitHub.Shi Yan Ming didn’t intend to make me feel bad. 'analyst_opinion': self.parse_analyst_opinion, 'analyst_opinion':','td'], # analyst - header, data str 'Company_desc': 'div#yfi_business_summary div', # CSS selector for dom objects mainly for parsing the results. Below is the snapshot of the different dictionaries described above. Append the results for each symbol and return as combined Pandas data frame which can be used to join to other data set. The first is the start URLs to combine with the stock symbol for query, the CSS selector used for retrieving the parameters required and lastly the dict containing the method of parsing for each of the URL. For a series of stocks symbol, scan through all the URLs given and scrape the page for required information. The class in the script go through a series of steps as described. The same concept can be applied to other desired data. For now, the script is able to scrape the analyst opinion, company key statistics (not found in yahoo API) such as debt, current ratio, type of industry and finally the company desc. It makes use of the PATTERN module web dom and css selector object/function. The following script will be able to scrape the information that the Yahoo Finance API is not able to provide. In order to retrieve more data such as analyst opinion or company basic summary, it is required to scrape the website directly. However, this is limited to the properties or the extent of data the API is able to provide. The previous post on scraping finance data from yahoo finance uses Yahoo Finance API to retrieve stocks data in the form of csv file.
0 Comments
Leave a Reply. |