Python Web Scraping Snippets is a collection of Sublime Text snippets for web scraping and HTML parsing in Python.
The easiest way to install Python Web Scraping Snippets is through Package Control. After it is enabled inside Sublime Text, open the command palette and find Package Control: Install Package and press ENTER
. Then, find Python Web Scraping Snippets in the list. Press ENTER
again, and this package is installed!
Import snippets start with i
followed by the import alias.
Trigger | Description |
---|---|
ibs |
from bs4 import BeautifulSoup |
irequests |
import requests |
iAsyncHTMLSession |
from requests_html import AsyncHTMLSession |
iHTMLSession |
from requests_html import HTMLSession |
Trigger | Description |
---|---|
bs |
bs4.BeautifulSoup |
find |
bs4.BeautifulSoup.find |
find_all |
bs4.BeautifulSoup.find_all |
prettify |
bs4.BeautifulSoup.prettify |
select |
bs4.BeautifulSoup.select |
select_one |
bs4.BeautifulSoup.select_one |
Trigger | Description |
---|---|
delete |
requests.delete |
get |
requests.get |
head |
requests.head |
patch |
requests.patch |
post |
requests.post |
put |
requests.put |
request |
requests.request |
Trigger | Description |
---|---|
AsyncHTMLSession |
requests_html.AsyncHTMLSession |
HTMLSession |
requests_html.HTMLSession |
The snippet files are in the snippets
folder of this GitHub repository.