From 87d6fc19a15672af5f1afc2d70781763f2351185 Mon Sep 17 00:00:00 2001 From: pranavr2003 Date: Mon, 19 Jul 2021 12:18:39 +0530 Subject: [PATCH] Update README.md --- README.md | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/README.md b/README.md index 90f02b7..74ef349 100644 --- a/README.md +++ b/README.md @@ -137,42 +137,6 @@ with open_tag('newTag'): autoPrettify() ``` -Here's another example of using it standalone - a function to scrape all text within the `

` tag from the source code of a URL using requests: - -```python - -import re -import requests -from sierra import * - -def extractpText(url): - - http = urllib3.PoolManager() - req = http.request('GET', url) - respData = str(req.data) - regex = '

(.*?)

' - paragraphs = re.findall(regex, respData) - return paragraph - -# Displaying it on the web application - -title('Extracting text from the p tag given a URL') -openBody() - -with open_tag('pre'): # Showing the output within the
 tag
-
-    writeWA(f'''
-    All following text appears within the <p> tag of 'http://example.com':
-    {extractpText("http://example.com/")}
-    ''')
-
-
-autoPrettify()
-
-```
-Notice that while `<` was used as an escape sequence for the '<' of the paragraph tag, `>` was not used. Why? Well that's because of the power of `autoPrettify()` at the end! It detects a starting escape sequence and detects that where there's a closing tag, an escape sequence was intended. So it fills the gap in when you use the function at the end of development. Huh! How cool is that?!
-
-
 ### See the [documentation](https://brainstormyourwayin.github.io/sierra.github.io/) for more
 
 ________________________________