This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import readline | |
import subprocess | |
import urllib | |
import urllib2 | |
from sys import exit | |
from bs4 import BeautifulSoup as bs | |
def get_titles(): | |
soup = bs((urllib2.urlopen("https://animetwist.net"))) | |
titles = [t.text.replace(" ","_") for t in soup.select("li a") if t.text != "ONGOING"] |