Skip to content

Commit df647d3

Browse files
committed
Update Pastebin.py
How do I requests.Session()?
1 parent 50619c2 commit df647d3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Pastebin.py

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from settings import SLEEP_PASTEBIN
77
from twitter import TwitterError
88
import logging
9+
import requests
910

1011

1112
class PastebinPaste(Paste):
@@ -23,6 +24,7 @@ def __init__(self, last_id=None):
2324
self.ref_id = last_id
2425
self.BASE_URL = 'http://pastebin.com'
2526
self.sleep = SLEEP_PASTEBIN
27+
self.session = requests.Session()
2628
super(Pastebin, self).__init__()
2729

2830
def update(self):

0 commit comments

Comments
 (0)