on the motherboard, specially if you lock/unlock screen and screen works again for sometime. lcd connectors gets disconnected lightly from the motherboard due to multiple falls and hits after sometime. best of luck for all\n\n\n\n### Other Answer\nI am facing the same issue whereby these ghost touches type and open apps , I am using an original Iphone cable , how to I fix this issue.\n\n\n\n### Other Answer\nThere were two issues with the phone I had troubles with. It was my dads and turns out he carried it in his pocket. The phone itself had a little bend in it as a result. A little pressure in the opposite direction helped the issue. But it also had a tiny crack in the screen which wasnt obvious, once we added a screen protector this fixed the issues entirely.\n\n\n\n### Other Answer\nI had the same problem with my 64Gb iPhone 6+. Tried a lot of things and eventually downloaded all my images and videos to my PC and restarted the phone - problem solved. Been working now for two days.', lookup_str='', metadata={'source': 'https://www.ifixit.com/Answers/View/318583/My+iPhone+6+is+typing+and+opening+apps+by+itself', 'title': 'My iPhone 6 is typing and opening apps by itself'}, lookup_index=0)]


loader = IFixitLoader("https://www.ifixit.com/Device/Standard_iPad")
data = loader.load()
data
[Document(page_content="Standard iPad\nThe standard edition of the tablet computer made by Apple.\n== Background Information ==\n\nOriginally introduced in January 2010, the iPad is Apple's standard edition of their tablet computer. In total, there have been ten generations of the standard edition of the iPad.\n\n== Additional Information ==\n\n* [link|https://www.apple.com/ipad-select/|Official Apple Product Page]\n* [link|https://en.wikipedia.org/wiki/IPad#iPad|Official iPad Wikipedia]", lookup_str='', metadata={'source': 'https://www.ifixit.com/Device/Standard_iPad', 'title': 'Standard iPad'}, lookup_index=0)]
Searching iFixit using /suggest#
If you’re looking for a more general way to search iFixit based on a keyword or phrase, the /suggest endpoint will return content related to the search term, then the loader will load the content from each of the suggested items and prep and return the documents.
data = IFixitLoader.load_suggestions("Banana")
data


[Document(page_content='Banana\nTasty fruit. Good source of potassium. Yellow.\n== Background Information ==\n\nCommonly misspelled, this wildly popular, phone shaped fruit serves as nutrition and an obstacle to slow down vehicles racing close behind you. Also used commonly as a synonym for “crazy” or “insane”.\n\nBotanically, the banana is considered a berry, although it isn’t included in the culinary berry category containing strawberries and raspberries. Belonging to the genus Musa, the banana originated in Southeast Asia and Australia. Now largely cultivated throughout South and Central America, bananas are largely available throughout the world. They are especially valued as a staple food group in developing countries due to the banana tree’s ability to produce fruit year round.\n\nThe banana can be easily opened. Simply remove the outer yellow shell by cracking the top of the stem. Then, with the broken piece, peel downward on each side until the fruity components on the inside are exposed. Once the shell has been removed it cannot be put back together.\n\n== Technical Specifications ==\n\n* Dimensions: Variable depending on genetics of the parent tree\n* Color: Variable depending on ripeness, region, and season\n\n== Additional Information ==\n\n[link|https://en.wikipedia.org/wiki/Banana|Wiki: Banana]', lookup_str='', metadata={'source': 'https://www.ifixit.com/Device/Banana', 'title': 'Banana'},


'title': 'Banana'}, lookup_index=0),


Document(page_content="# Banana Teardown\nIn this teardown, we open a banana to see what's inside.  Yellow and delicious, but most importantly, yellow.\n\n\n###Tools Required:\n\n - Fingers\n\n - Teeth\n\n - Thumbs\n\n\n###Parts Required:\n\n - None\n\n\n## Step 1\nTake one banana from the bunch.\nDon't squeeze too hard!\n\n\n## Step 2\nHold the banana in your left hand and grip the stem between your right thumb and forefinger.\n\n\n## Step 3\nPull the stem downward until the peel splits.\n\n\n## Step 4\nInsert your thumbs into the split of the peel and pull the two sides apart.\nExpose the top of the banana.  It may be slightly squished from pulling on the stem, but this will not affect the flavor.\n\n\n## Step 5\nPull open the peel, starting from your original split, and opening it along the length of the banana.\n\n\n## Step 6\nRemove fruit from peel.\n\n\n## Step 7\nEat and enjoy!\nThis is where you'll need your teeth.\nDo not choke on banana!\n", lookup_str='', metadata={'source': 'https://www.ifixit.com/Teardown/Banana+Teardown/811', 'title': 'Banana


'title': 'Banana Teardown'}, lookup_index=0)]


previous
HuggingFace dataset loader
next
Images
 Contents

Searching iFixit using /suggest
By Harrison Chase

      © Copyright 2023, Harrison Chase.

  Last updated on Apr 26, 2023.


.ipynb
.pdf
Directory Loader
 Contents
Show a progress bar
Change loader class
Directory Loader#
This covers how to use the DirectoryLoader to load all documents in a directory. Under the hood, by default this uses the UnstructuredLoader
from langchain.document_loaders import DirectoryLoader
We can use the glob parameter to control which files to load. Note that here it doesn’t load the .rst file or the .ipynb files.
loader = DirectoryLoader('../', glob="**/*.md")
docs = loader.load()
len(docs)
1
Show a progress bar#
By default a progress bar will not be shown. To show a progress bar, install the tqdm library (e.g. pip install tqdm), and set the show_progress parameter to True.
%pip install tqdm
loader = DirectoryLoader('../', glob="**/*.md", show_progress=True)
docs = loader.load()
Requirement already satisfied: tqdm in /Users/jon/.pyenv/versions/3.9.16/envs/microbiome-app/lib/python3.9/site-packages (4.65.0)
0it [00:00, ?it/s]
Change loader class#
By default this uses the UnstructuredLoader class. However, you can change up the type of loader pretty easily.
from langchain.document_loaders import TextLoader
loader = DirectoryLoader('../', glob="**/*.md", loader_cls=TextLoader)
docs = loader.load()


docs = loader.load()
len(docs)
1
If you need to load Python source code files, use the PythonLoader.
from langchain.document_loaders import PythonLoader
loader = DirectoryLoader('../../../../../', glob="**/*.py", loader_cls=PythonLoader)
docs = loader.load()
len(docs)
691
previous
Diffbot
next
Discord
 Contents

Show a progress bar
Change loader class
By Harrison Chase

      © Copyright 2023, Harrison Chase.

  Last updated on Apr 26, 2023.


.ipynb
.pdf
Confluence
Confluence#
A loader for Confluence pages.
This currently supports both username/api_key and Oauth2 login.
Specify a list page_ids and/or space_key to load in the corresponding pages into Document objects, if both are specified the union of both sets will be returned.
You can also specify a boolean include_attachments to include attachments, this is set to False by default, if set to True all attachments will be downloaded and ConfluenceReader will extract the text from the attachments and add it to the Document object. Currently supported attachment types are: PDF, PNG, JPEG/JPG, SVG, Word and Excel.
Hint: space_key and page_id can both be found in the URL of a page in Confluence - https://yoursite.atlassian.com/wiki/spaces/<space_key>/pages/<page_id>
from langchain.document_loaders import ConfluenceLoader
loader = ConfluenceLoader(
    url="https://yoursite.atlassian.com/wiki",
    username="me",
    api_key="12345"
)
documents = loader.load(space_key="SPACE", include_attachments=True, limit=50)
previous
College Confidential
next
Copy Paste
By Harrison Chase

      © Copyright 2023, Harrison Chase.

  Last updated on Apr 26, 2023.


.ipynb
.pdf
DuckDB Loader
 Contents
Specifying Which Columns are Content vs Metadata
Adding Source to Metadata
DuckDB Loader#
Load a DuckDB query with one document per row.
from langchain.document_loaders import DuckDBLoader
%%file example.csv
Team,Payroll
Nationals,81.34
Reds,82.20
Writing example.csv
loader = DuckDBLoader("SELECT * FROM read_csv_auto('example.csv')")
data = loader.load()
print(data)
[Document(page_content='Team: Nationals\nPayroll: 81.34', metadata={}), Document(page_content='Team: Reds\nPayroll: 82.2', metadata={})]
Specifying Which Columns are Content vs Metadata#
loader = DuckDBLoader(
    "SELECT * FROM read_csv_auto('example.csv')",
    page_content_columns=["Team"],
    metadata_columns=["Payroll"]
)
data = loader.load()
print(data)
[Document(page_content='Team: Nationals', metadata={'Payroll': 81.34}), Document(page_content='Team: Reds', metadata={'Payroll': 82.2})]
Adding Source to Metadata#
loader = DuckDBLoader(
    "SELECT Team, Payroll, Team As source FROM read_csv_auto('example.csv')",
    metadata_columns=["source"]
)
data = loader.load()


)
data = loader.load()
print(data)
[Document(page_content='Team: Nationals\nPayroll: 81.34\nsource: Nationals', metadata={'source': 'Nationals'}), Document(page_content='Team: Reds\nPayroll: 82.2\nsource: Reds', metadata={'source': 'Reds'})]
previous
Discord
next
Email
 Contents

Specifying Which Columns are Content vs Metadata
Adding Source to Metadata
By Harrison Chase

      © Copyright 2023, Harrison Chase.

  Last updated on Apr 26, 2023.


.ipynb
.pdf
Word Documents
 Contents
Retain Elements
Word Documents#
This covers how to load Word documents into a document format that we can use downstream.
from langchain.document_loaders import UnstructuredWordDocumentLoader
loader = UnstructuredWordDocumentLoader("example_data/fake.docx")
data = loader.load()
data
[Document(page_content='Lorem ipsum dolor sit amet.', lookup_str='', metadata={'source': 'fake.docx'}, lookup_index=0)]
Retain Elements#
Under the hood, Unstructured creates different “elements” for different chunks of text. By default we combine those together, but you can easily keep that separation by specifying mode="elements".
loader = UnstructuredWordDocumentLoader("example_data/fake.docx", mode="elements")
data = loader.load()
data[0]
Document(page_content='Lorem ipsum dolor sit amet.', lookup_str='', metadata={'source': 'fake.docx', 'filename': 'fake.docx', 'category': 'Title'}, lookup_index=0)
previous
WhatsApp Chat
next
YouTube
 Contents

Retain Elements
By Harrison Chase

      © Copyright 2023, Harrison Chase.

  Last updated on Apr 26, 2023.


.ipynb
.pdf
HTML
 Contents
Loading HTML with BeautifulSoup4
HTML#
This covers how to load HTML documents into a document format that we can use downstream.
from langchain.document_loaders import UnstructuredHTMLLoader
loader = UnstructuredHTMLLoader("example_data/fake-content.html")
data = loader.load()
data
[Document(page_content='My First Heading\n\nMy first paragraph.', lookup_str='', metadata={'source': 'example_data/fake-content.html'}, lookup_index=0)]
Loading HTML with BeautifulSoup4#
We can also use BeautifulSoup4 to load HTML documents using the BSHTMLLoader.  This will extract the text from the html into page_content, and the page title as title into metadata.
from langchain.document_loaders import BSHTMLLoader
loader = BSHTMLLoader("example_data/fake-content.html")
data = loader.load()
data
[Document(page_content='\n\nTest Title\n\n\nMy First Heading\nMy first paragraph.\n\n\n', lookup_str='', metadata={'source': 'example_data/fake-content.html', 'title': 'Test Title'}, lookup_index=0)]
previous
Hacker News
next
HuggingFace dataset loader
 Contents

Loading HTML with BeautifulSoup4
By Harrison Chase

      © Copyright 2023, Harrison Chase.

  Last updated on Apr 26, 2023.


.ipynb
.pdf
Roam
 Contents
🧑 Instructions for ingesting your own dataset
Roam#
This notebook covers how to load documents from a Roam database. This takes a lot of inspiration from the example repo here.
🧑 Instructions for ingesting your own dataset#
Export your dataset from Roam Research. You can do this by clicking on the three dots in the upper right hand corner and then clicking Export.
When exporting, make sure to select the Markdown & CSV format option.
This will produce a .zip file in your Downloads folder. Move the .zip file into this repository.
Run the following command to unzip the zip file (replace the Export... with your own file name as needed).
unzip Roam-Export-1675782732639.zip -d Roam_DB
from langchain.document_loaders import RoamLoader
loader = ObsidianLoader("Roam_DB")
docs = loader.load()
previous
ReadTheDocs Documentation
next
s3 Directory
 Contents

🧑 Instructions for ingesting your own dataset
By Harrison Chase

      © Copyright 2023, Harrison Chase.

  Last updated on Apr 26, 2023.


.ipynb
.pdf
EverNote
EverNote#
How to load EverNote file from disk.
# !pip install pypandoc
# import pypandoc
# pypandoc.download_pandoc()
from langchain.document_loaders import EverNoteLoader
loader = EverNoteLoader("example_data/testing.enex")
loader.load()
[Document(page_content='testing this\n\nwhat happens?\n\nto the world?\n', lookup_str='', metadata={'source': 'example_data/testing.enex'}, lookup_index=0)]
previous
EPubs
next
Facebook Chat
By Harrison Chase

      © Copyright 2023, Harrison Chase.

  Last updated on Apr 26, 2023.


.ipynb
.pdf
Web Base
 Contents
Loading multiple webpages
Load multiple urls concurrently
Loading a xml file, or using a different BeautifulSoup parser
Web Base#
This covers how to load all text from webpages into a document format that we can use downstream. For more custom logic for loading webpages look at some child class examples such as IMSDbLoader, AZLyricsLoader, and CollegeConfidentialLoader
from langchain.document_loaders import WebBaseLoader
loader = WebBaseLoader("https://www.espn.com/")
data = loader.load()
data


[Document(page_content="\n\n\n\n\n\n\n\n\nESPN - Serving Sports Fans. Anytime. Anywhere.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n        Skip to main content\n    \n\n        Skip to navigation\n    \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n<\n\n>\n\n\n\n\n\n\n\n\n\nMenuESPN\n\n\nSearch\n\n\n\nscores\n\n\n\nNFLNBANCAAMNCAAWNHLSoccer…MLBNCAAFGolfTennisSports


BettingBoxingCFLNCAACricketF1HorseLLWSMMANASCARNBA G LeagueOlympic SportsRacingRN BBRN FBRugbyWNBAWorld Baseball ClassicWWEX GamesXFLMore ESPNFantasyListenWatchESPN+\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n  \n\nSUBSCRIBE NOW\n\n\n\n\n\nNHL: Select Games\n\n\n\n\n\n\n\nXFL\n\n\n\n\n\n\n\nMLB: Select Games\n\n\n\n\n\n\n\nNCAA Baseball\n\n\n\n\n\n\n\nNCAA Softball\n\n\n\n\n\n\n\nCricket: Select Matches\n\n\n\n\n\n\n\nMel Kiper's NFL Mock Draft 3.0\n\n\nQuick Links\n\n\n\n\nMen's Tournament Challenge\n\n\n\n\n\n\n\nWomen's Tournament Challenge\n\n\n\n\n\n\n\nNFL Draft Order\n\n\n\n\n\n\n\nHow To Watch NHL Games\n\n\n\n\n\n\n\nFantasy Baseball: Sign Up\n\n\n\n\n\n\n\nHow To Watch PGA


To Watch PGA TOUR\n\n\n\n\n\n\nFavorites\n\n\n\n\n\n\n      Manage Favorites\n      \n\n\n\nCustomize ESPNSign UpLog InESPN Sites\n\n\n\n\nESPN Deportes\n\n\n\n\n\n\n\nAndscape\n\n\n\n\n\n\n\nespnW\n\n\n\n\n\n\n\nESPNFC\n\n\n\n\n\n\n\nX Games\n\n\n\n\n\n\n\nSEC Network\n\n\nESPN Apps\n\n\n\n\nESPN\n\n\n\n\n\n\n\nESPN Fantasy\n\n\nFollow ESPN\n\n\n\n\nFacebook\n\n\n\n\n\n\n\nTwitter\n\n\n\n\n\n\n\nInstagram\n\n\n\n\n\n\n\nSnapchat\n\n\n\n\n\n\n\nYouTube\n\n\n\n\n\n\n\nThe ESPN Daily Podcast\n\n\nAre you ready for Opening Day? Here's your guide to MLB's offseason chaosWait, Jacob deGrom is on the Rangers now? Xander Bogaerts and Trea Turner signed where? And what about Carlos Correa? Yeah, you're going to need to read up before Opening


what about Carlos Correa? Yeah, you're going to need to read up before Opening Day.12hESPNIllustration by ESPNEverything you missed in the MLB offseason3h2:33World Series odds, win totals, props for every teamPlay fantasy baseball for free!TOP HEADLINESQB Jackson has requested trade from RavensSources: Texas hiring Terry as full-time coachJets GM: No rush on Rodgers; Lamar not optionLove to leave North Carolina, enter transfer portalBelichick to angsty Pats fans: See last 25 yearsEmbiid out, Harden due back vs. Jokic, NuggetsLynch: Purdy 'earned the right' to start for NinersMan Utd, Wrexham plan July friendly in San DiegoOn paper, Padres overtake DodgersLAMAR WANTS OUT OF BALTIMOREMarcus Spears identifies the two teams that need Lamar Jackson the most8h2:00Would Lamar sit out? Will Ravens draft a QB? Jackson trade request insightsLamar Jackson has asked Baltimore to trade him, but Ravens coach John Harbaugh hopes the QB will be back.3hJamison HensleyBallard, Colts will consider trading for QB JacksonJackson to Indy? Washington? Barnwell ranks the QB's trade fitsSNYDER'S TUMULTUOUS 24-YEAR RUNHow Washington’s NFL franchise sank on and off the field under owner Dan SnyderSnyder purchased one of the NFL's marquee franchises in 1999. Twenty-four years later, and with the team up for sale, he leaves a legacy of on-field futility and off-field scandal.13hJohn


a legacy of on-field futility and off-field scandal.13hJohn KeimESPNIOWA STAR STEPS UP AGAINJ-Will: Caitlin Clark is the biggest brand in college sports right now8h0:47'The better the opponent, the better she plays': Clark draws comparisons to TaurasiCaitlin Clark's performance on Sunday had longtime observers going back decades to find comparisons.16hKevin PeltonWOMEN'S ELITE EIGHT SCOREBOARDMONDAY'S GAMESCheck your bracket!NBA DRAFTHow top prospects fared on the road to the Final FourThe 2023 NCAA tournament is down to four teams, and ESPN's Jonathan Givony recaps the players who saw their NBA draft stock change.11hJonathan GivonyAndy Lyons/Getty ImagesTALKING BASKETBALLWhy AD needs to be more assertive with LeBron on the court10h1:33Why Perk won't blame Kyrie for Mavs' woes8h1:48WHERE EVERY TEAM STANDSNew NFL Power Rankings: Post-free-agency 1-32 poll, plus underrated offseason movesThe free agent frenzy has come and gone. Which teams have improved their 2023 outlook, and which teams have taken a hit?12hNFL Nation reportersIllustration by ESPNTHE BUCK STOPS WITH BELICHICKBruschi: Fair to criticize Bill Belichick for Patriots' struggles10h1:27 Top HeadlinesQB Jackson has requested trade from RavensSources: Texas hiring Terry as full-time coachJets GM: No rush on Rodgers; Lamar not optionLove to leave North Carolina, enter transfer portalBelichick to angsty Pats


not optionLove to leave North Carolina, enter transfer portalBelichick to angsty Pats fans: See last 25 yearsEmbiid out, Harden due back vs. Jokic, NuggetsLynch: Purdy 'earned the right' to start for NinersMan Utd, Wrexham plan July friendly in San DiegoOn paper, Padres overtake DodgersFavorites FantasyManage FavoritesFantasy HomeCustomize ESPNSign UpLog InMarch Madness LiveESPNMarch Madness LiveWatch every men's NCAA tournament game live! ICYMI1:42Austin Peay's coach, pitcher and catcher all ejected after retaliation pitchAustin Peay's pitcher, catcher and coach were all ejected after a pitch was thrown at Liberty's Nathan Keeter, who earlier in the game hit a home run and celebrated while running down the third-base line. Men's Tournament ChallengeIllustration by ESPNMen's Tournament ChallengeCheck your bracket(s) in the 2023 Men's Tournament Challenge, which you can follow throughout the Big Dance. Women's Tournament ChallengeIllustration by ESPNWomen's Tournament ChallengeCheck your bracket(s) in the 2023 Women's Tournament Challenge, which you can follow throughout the Big Dance. Best of ESPN+AP Photo/Lynne SladkyFantasy Baseball ESPN+ Cheat Sheet: Sleepers, busts, rookies and closersYou've read their names all preseason long, it'd be a shame to forget them on draft day. The ESPN+ Cheat Sheet is one way to make sure that doesn't happen.Steph Chambers/Getty ImagesPassan's 2023 MLB season


happen.Steph Chambers/Getty ImagesPassan's 2023 MLB season preview: Bold predictions and moreOpening Day is just over a week away -- and Jeff Passan has everything you need to know covered from every possible angle.Photo by Bob Kupbens/Icon Sportswire2023 NFL free agency: Best team fits for unsigned playersWhere could Ezekiel Elliott land? Let's match remaining free agents to teams and find fits for two trade candidates.Illustration by ESPN2023 NFL mock draft: Mel Kiper's first-round pick predictionsMel Kiper Jr. makes his predictions for Round 1 of the NFL draft, including projecting a trade in the top five. Trending NowAnne-Marie Sorvin-USA TODAY SBoston Bruins record tracker: Wins, points, milestonesThe B's are on pace for NHL records in wins and points, along with some individual superlatives as well. Follow along here with our updated tracker.Mandatory Credit: William Purnell-USA TODAY Sports2023 NFL full draft order: AFC, NFC team picks for all roundsStarting with the Carolina Panthers at No. 1 overall, here's the entire 2023 NFL draft broken down round by round. How to Watch on ESPN+Gregory Fisher/Icon Sportswire2023 NCAA men's hockey: Results, bracket, how to watchThe matchups in Tampa promise to be thrillers, featuring plenty of star power, high-octane offense and stellar defense.(AP Photo/Koji Sasahara, File)How to watch the PGA Tour, Masters, PGA Championship and FedEx Cup playoffs on ESPN, ESPN+Here's everything you need to know about how to watch the


ESPN, ESPN+Here's everything you need to know about how to watch the PGA Tour, Masters, PGA Championship and FedEx Cup playoffs on ESPN and ESPN+.Hailie Lynch/XFLHow to watch the XFL: 2023 schedule, teams, players, news, moreEvery XFL game will be streamed on ESPN+. Find out when and where else you can watch the eight teams compete. Sign up to play the #1 Fantasy Baseball GameReactivate A LeagueCreate A LeagueJoin a Public LeaguePractice With a Mock DraftSports BettingAP Photo/Mike KropfMarch Madness betting 2023: Bracket odds, lines, tips, moreThe 2023 NCAA tournament brackets have finally been released, and we have everything you need to know to make a bet on all of the March Madness games. Sign up to play the #1 Fantasy game!Create A LeagueJoin Public LeagueReactivateMock Draft Now\n\nESPN+\n\n\n\n\nNHL: Select Games\n\n\n\n\n\n\n\nXFL\n\n\n\n\n\n\n\nMLB: Select Games\n\n\n\n\n\n\n\nNCAA Baseball\n\n\n\n\n\n\n\nNCAA Softball\n\n\n\n\n\n\n\nCricket: Select Matches\n\n\n\n\n\n\n\nMel Kiper's NFL Mock Draft 3.0\n\n\nQuick Links\n\n\n\n\nMen's Tournament


Links\n\n\n\n\nMen's Tournament Challenge\n\n\n\n\n\n\n\nWomen's Tournament Challenge\n\n\n\n\n\n\n\nNFL Draft Order\n\n\n\n\n\n\n\nHow To Watch NHL Games\n\n\n\n\n\n\n\nFantasy Baseball: Sign Up\n\n\n\n\n\n\n\nHow To Watch PGA TOUR\n\n\nESPN Sites\n\n\n\n\nESPN Deportes\n\n\n\n\n\n\n\nAndscape\n\n\n\n\n\n\n\nespnW\n\n\n\n\n\n\n\nESPNFC\n\n\n\n\n\n\n\nX Games\n\n\n\n\n\n\n\nSEC Network\n\n\nESPN Apps\n\n\n\n\nESPN\n\n\n\n\n\n\n\nESPN Fantasy\n\n\nFollow ESPN\n\n\n\n\nFacebook\n\n\n\n\n\n\n\nTwitter\n\n\n\n\n\n\n\nInstagram\n\n\n\n\n\n\n\nSnapchat\n\n\n\n\n\n\n\nYouTube\n\n\n\n\n\n\n\nThe ESPN Daily


ESPN Daily Podcast\n\n\nTerms of UsePrivacy PolicyYour US State Privacy RightsChildren's Online Privacy PolicyInterest-Based AdsAbout Nielsen MeasurementDo Not Sell or Share My Personal InformationContact UsDisney Ad Sales SiteWork for ESPNCopyright: © ESPN Enterprises, Inc. All rights reserved.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n", lookup_str='', metadata={'source': 'https://www.espn.com/'}, lookup_index=0)]


"""
# Use this piece of code for testing new custom BeautifulSoup parsers
import requests
from bs4 import BeautifulSoup
html_doc = requests.get("{INSERT_NEW_URL_HERE}")
soup = BeautifulSoup(html_doc.text, 'html.parser')
# Beautiful soup logic to be exported to langchain.document_loaders.webpage.py
# Example: transcript = soup.select_one("td[class='scrtext']").text
# BS4 documentation can be found here: https://www.crummy.com/software/BeautifulSoup/bs4/doc/
""";
Loading multiple webpages#
You can also load multiple webpages at once by passing in a list of urls to the loader. This will return a list of documents in the same order as the urls passed in.
loader = WebBaseLoader(["https://www.espn.com/", "https://google.com"])
docs = loader.load()
docs


what about Carlos Correa? Yeah, you're going to need to read up before Opening Day.12hESPNIllustration by ESPNEverything you missed in the MLB offseason3h2:33World Series odds, win totals, props for every teamPlay fantasy baseball for free!TOP HEADLINESQB Jackson has requested trade from RavensSources: Texas hiring Terry as full-time coachJets GM: No rush on Rodgers; Lamar not optionLove to leave North Carolina, enter transfer portalBelichick to angsty Pats fans: See last 25 yearsEmbiid out, Harden due back vs. Jokic, NuggetsLynch: Purdy 'earned the right' to start for NinersMan Utd, Wrexham plan July friendly in San DiegoOn paper, Padres overtake DodgersLAMAR WANTS OUT OF BALTIMOREMarcus Spears identifies the two teams that need Lamar Jackson the most7h2:00Would Lamar sit out? Will Ravens draft a QB? Jackson trade request insightsLamar Jackson has asked Baltimore to trade him, but Ravens coach John Harbaugh hopes the QB will be back.3hJamison HensleyBallard, Colts will consider trading for QB JacksonJackson to Indy? Washington? Barnwell ranks the QB's trade fitsSNYDER'S TUMULTUOUS 24-YEAR RUNHow Washington’s NFL franchise sank on and off the field under owner Dan SnyderSnyder purchased one of the NFL's marquee franchises in 1999. Twenty-four years later, and with the team up for sale, he leaves a legacy of on-field futility and off-field scandal.13hJohn


a legacy of on-field futility and off-field scandal.13hJohn KeimESPNIOWA STAR STEPS UP AGAINJ-Will: Caitlin Clark is the biggest brand in college sports right now8h0:47'The better the opponent, the better she plays': Clark draws comparisons to TaurasiCaitlin Clark's performance on Sunday had longtime observers going back decades to find comparisons.16hKevin PeltonWOMEN'S ELITE EIGHT SCOREBOARDMONDAY'S GAMESCheck your bracket!NBA DRAFTHow top prospects fared on the road to the Final FourThe 2023 NCAA tournament is down to four teams, and ESPN's Jonathan Givony recaps the players who saw their NBA draft stock change.11hJonathan GivonyAndy Lyons/Getty ImagesTALKING BASKETBALLWhy AD needs to be more assertive with LeBron on the court9h1:33Why Perk won't blame Kyrie for Mavs' woes8h1:48WHERE EVERY TEAM STANDSNew NFL Power Rankings: Post-free-agency 1-32 poll, plus underrated offseason movesThe free agent frenzy has come and gone. Which teams have improved their 2023 outlook, and which teams have taken a hit?12hNFL Nation reportersIllustration by ESPNTHE BUCK STOPS WITH BELICHICKBruschi: Fair to criticize Bill Belichick for Patriots' struggles10h1:27 Top HeadlinesQB Jackson has requested trade from RavensSources: Texas hiring Terry as full-time coachJets GM: No rush on Rodgers; Lamar not optionLove to leave North Carolina, enter transfer portalBelichick to angsty Pats


ESPN Daily Podcast\n\n\nTerms of UsePrivacy PolicyYour US State Privacy RightsChildren's Online Privacy PolicyInterest-Based AdsAbout Nielsen MeasurementDo Not Sell or Share My Personal InformationContact UsDisney Ad Sales SiteWork for ESPNCopyright: © ESPN Enterprises, Inc. All rights reserved.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n", lookup_str='', metadata={'source': 'https://www.espn.com/'}, lookup_index=0),


Document(page_content='GoogleSearch Images Maps Play YouTube News Gmail Drive More »Web History | Settings | Sign in\xa0Advanced searchAdvertisingBusiness SolutionsAbout Google© 2023 - Privacy - Terms   ', lookup_str='', metadata={'source': 'https://google.com'}, lookup_index=0)]
Load multiple urls concurrently#
You can speed up the scraping process by scraping and parsing multiple urls concurrently.
There are reasonable limits to concurrent requests, defaulting to 2 per second.  If you aren’t concerned about being a good citizen, or you control the server you are scraping and don’t care about load, you can change the requests_per_second parameter to increase the max concurrent requests.  Note, while this will speed up the scraping process, but may cause the server to block you.  Be careful!
!pip install nest_asyncio
# fixes a bug with asyncio and jupyter
import nest_asyncio
nest_asyncio.apply()
Requirement already satisfied: nest_asyncio in /Users/harrisonchase/.pyenv/versions/3.9.1/envs/langchain/lib/python3.9/site-packages (1.5.6)
loader = WebBaseLoader(["https://www.espn.com/", "https://google.com"])
loader.requests_per_second = 1
docs = loader.aload()
docs


Document(page_content='GoogleSearch Images Maps Play YouTube News Gmail Drive More »Web History | Settings | Sign in\xa0Advanced searchAdvertisingBusiness SolutionsAbout Google© 2023 - Privacy - Terms   ', lookup_str='', metadata={'source': 'https://google.com'}, lookup_index=0)]
Loading a xml file, or using a different BeautifulSoup parser#
You can also look at SitemapLoader for an example of how to load a sitemap file, which is an example of using this feature.
loader = WebBaseLoader("https://www.govinfo.gov/content/pkg/CFR-2018-title10-vol3/xml/CFR-2018-title10-vol3-sec431-86.xml")
loader.default_parser = "xml"
docs = loader.load()
docs


[Document(page_content='\n\n10\nEnergy\n3\n2018-01-01\n2018-01-01\nfalse\nUniform test method for the measurement of energy efficiency of commercial packaged boilers.\nÂ§ 431.86\nSection Â§ 431.86\n\nEnergy\nDEPARTMENT OF ENERGY\nENERGY CONSERVATION\nENERGY EFFICIENCY PROGRAM FOR CERTAIN COMMERCIAL AND INDUSTRIAL EQUIPMENT\nCommercial Packaged Boilers\nTest Procedures\n\n\n\n\n§\u2009431.86\nUniform test method for the measurement of energy efficiency of commercial packaged boilers.\n(a) Scope. This section provides test procedures, pursuant to the Energy Policy and Conservation Act (EPCA), as amended, which must be followed for measuring the combustion efficiency and/or thermal efficiency of a gas- or oil-fired commercial packaged boiler.\n(b) Testing and Calculations. Determine the thermal efficiency or combustion efficiency of commercial packaged boilers by conducting the appropriate test procedure(s) indicated in Table 1 of this section.\n\nTable 1—Test Requirements for Commercial Packaged Boiler Equipment Classes\n\nEquipment category\nSubcategory\nCertified rated inputBtu/h\n\nStandards efficiency metric(§\u2009431.87)\n\nTest procedure(corresponding to\nstandards efficiency\nmetric required\nby


procedure(corresponding to\nstandards efficiency\nmetric required\nby §\u2009431.87)\n\n\n\nHot Water\nGas-fired\n≥300,000 and ≤2,500,000\nThermal Efficiency\nAppendix A, Section 2.\n\n\nHot Water\nGas-fired\n>2,500,000\nCombustion Efficiency\nAppendix A, Section 3.\n\n\nHot Water\nOil-fired\n≥300,000 and ≤2,500,000\nThermal Efficiency\nAppendix A, Section 2.\n\n\nHot Water\nOil-fired\n>2,500,000\nCombustion Efficiency\nAppendix A, Section 3.\n\n\nSteam\nGas-fired (all*)\n≥300,000 and ≤2,500,000\nThermal Efficiency\nAppendix A, Section 2.\n\n\nSteam\nGas-fired (all*)\n>2,500,000 and ≤5,000,000\nThermal Efficiency\nAppendix A, Section 2.\n\n\n\u2003\n\n>5,000,000\nThermal Efficiency\nAppendix A, Section 2.OR\nAppendix A, Section 3 with Section 2.4.3.2.\n\n\n\nSteam\nOil-fired\n≥300,000 and ≤2,500,000\nThermal Efficiency\nAppendix A, Section


Efficiency\nAppendix A, Section 2.\n\n\nSteam\nOil-fired\n>2,500,000 and ≤5,000,000\nThermal Efficiency\nAppendix A, Section 2.\n\n\n\u2003\n\n>5,000,000\nThermal Efficiency\nAppendix A, Section 2.OR\nAppendix A, Section 3. with Section 2.4.3.2.\n\n\n\n*\u2009Equipment classes for commercial packaged boilers as of July 22, 2009 (74 FR 36355) distinguish between gas-fired natural draft and all other gas-fired (except natural draft).\n\n(c) Field Tests. The field test provisions of appendix A may be used only to test a unit of commercial packaged boiler with rated input greater than 5,000,000 Btu/h.\n[81 FR 89305, Dec. 9, 2016]\n\n\nEnergy Efficiency Standards\n\n', lookup_str='', metadata={'source': 'https://www.govinfo.gov/content/pkg/CFR-2018-title10-vol3/xml/CFR-2018-title10-vol3-sec431-86.xml'}, lookup_index=0)]


previous
URL
next
WhatsApp Chat
 Contents

Loading multiple webpages
Load multiple urls concurrently
Loading a xml file, or using a different BeautifulSoup parser
By Harrison Chase

      © Copyright 2023, Harrison Chase.

  Last updated on Apr 26, 2023.


.ipynb
.pdf
Discord
Discord#
You can follow the below steps to download your Discord data:
Go to your User Settings
Then go to Privacy and Safety
Head over to the Request all of my Data and click on Request Data button
It might take 30 days for you to receive your data. You’ll receive an email at the address which is registered with Discord. That email will have a download button using which you would be able to download your personal Discord data.
import pandas as pd
import os
path = input("Please enter the path to the contents of the Discord \"messages\" folder: ")
li = []
for f in os.listdir(path):
    expected_csv_path = os.path.join(path, f, 'messages.csv')
    csv_exists = os.path.isfile(expected_csv_path)
    if csv_exists:
        df = pd.read_csv(expected_csv_path, index_col=None, header=0)
        li.append(df)
df = pd.concat(li, axis=0, ignore_index=True, sort=False)
from langchain.document_loaders.discord import DiscordChatLoader
loader = DiscordChatLoader(df, user_id_col="ID")
print(loader.load())
previous
Directory Loader
next
DuckDB Loader
By Harrison Chase

      © Copyright 2023, Harrison Chase.

  Last updated on Apr 26, 2023.


.ipynb
.pdf
Figma
Figma#
This notebook covers how to load data from the Figma REST API into a format that can be ingested into LangChain, along with example usage for code generation.
import os
from langchain.document_loaders.figma import FigmaFileLoader
from langchain.text_splitter import CharacterTextSplitter
from langchain.chat_models import ChatOpenAI
from langchain.indexes import VectorstoreIndexCreator
from langchain.chains import ConversationChain, LLMChain
from langchain.memory import ConversationBufferWindowMemory
from langchain.prompts.chat import (
    ChatPromptTemplate,
    SystemMessagePromptTemplate,
    AIMessagePromptTemplate,
    HumanMessagePromptTemplate,
)
The Figma API Requires an access token, node_ids, and a file key.
The file key can be pulled from the URL.  https://www.figma.com/file/{filekey}/sampleFilename
Node IDs are also available in the URL. Click on anything and look for the ‘?node-id={node_id}’ param.
Access token instructions are in the Figma help center article: https://help.figma.com/hc/en-us/articles/8085703771159-Manage-personal-access-tokens
figma_loader = FigmaFileLoader(
    os.environ.get('ACCESS_TOKEN'),
    os.environ.get('NODE_IDS'),
    os.environ.get('FILE_KEY')
)


os.environ.get('FILE_KEY')
)
# see https://python.langchain.com/en/latest/modules/indexes/getting_started.html for more details
index = VectorstoreIndexCreator().from_loaders([figma_loader])
figma_doc_retriever = index.vectorstore.as_retriever()
def generate_code(human_input):
    # I have no idea if the Jon Carmack thing makes for better code. YMMV.
    # See https://python.langchain.com/en/latest/modules/models/chat/getting_started.html for chat info
    system_prompt_template = """You are expert coder Jon Carmack. Use the provided design context to create idomatic HTML/CSS code as possible based on the user request.
    Everything must be inline in one file and your response must be directly renderable by the browser.
    Figma file nodes and metadata: {context}"""
    human_prompt_template = "Code the {text}. Ensure it's mobile responsive"
    system_message_prompt = SystemMessagePromptTemplate.from_template(system_prompt_template)
    human_message_prompt = HumanMessagePromptTemplate.from_template(human_prompt_template)
    # delete the gpt-4 model_name to use the default gpt-3.5 turbo for faster results
    gpt_4 = ChatOpenAI(temperature=.02, model_name='gpt-4')


# Use the retriever's 'get_relevant_documents' method if needed to filter down longer docs
    relevant_nodes = figma_doc_retriever.get_relevant_documents(human_input)
    conversation = [system_message_prompt, human_message_prompt]
    chat_prompt = ChatPromptTemplate.from_messages(conversation)
    response = gpt_4(chat_prompt.format_prompt(
        context=relevant_nodes,
        text=human_input).to_messages())
    return response
response = generate_code("page top header")
Returns the following in response.content:


<!DOCTYPE html>\n<html lang="en">\n<head>\n    <meta charset="UTF-8">\n    <meta name="viewport" content="width=device-width, initial-scale=1.0">\n    <style>\n        @import url(\'https://fonts.googleapis.com/css2?family=DM+Sans:wght@500;700&family=Inter:wght@600&display=swap\');\n\n        body {\n            margin: 0;\n            font-family: \'DM Sans\', sans-serif;\n        }\n\n        .header {\n            display: flex;\n            justify-content: space-between;\n            align-items: center;\n            padding: 20px;\n            background-color: #fff;\n            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);\n        }\n\n        .header h1 {\n            font-size: 16px;\n            font-weight: 700;\n            margin: 0;\n        }\n\n        .header nav {\n            display: flex;\n            align-items: center;\n        }\n\n        .header nav a {\n            font-size: 14px;\n            font-weight: 500;\n            text-decoration: none;\n            color: #000;\n            margin-left: 20px;\n        }\n\n        @media (max-width: 768px) {\n            .header nav {\n                display: none;\n            }\n


.header nav {\n                display: none;\n            }\n        }\n    </style>\n\n\n    \n
Company Contact
\n        \n            Lorem Ipsum\n            Lorem Ipsum\n            Lorem Ipsum\n        \n    \n\n


previous
Facebook Chat
next
GCS Directory
By Harrison Chase

      © Copyright 2023, Harrison Chase.

  Last updated on Apr 26, 2023.


.ipynb
.pdf
s3 File
s3 File#
This covers how to load document objects from an s3 file object.
from langchain.document_loaders import S3FileLoader
#!pip install boto3
loader = S3FileLoader("testing-hwc", "fake.docx")
loader.load()
[Document(page_content='Lorem ipsum dolor sit amet.', lookup_str='', metadata={'source': '/var/folders/y6/8_bzdg295ld6s1_97_12m4lr0000gn/T/tmpxvave6wl/fake.docx'}, lookup_index=0)]
previous
s3 Directory
next
Sitemap Loader
By Harrison Chase

      © Copyright 2023, Harrison Chase.

  Last updated on Apr 26, 2023.


.ipynb
.pdf
IMSDb
IMSDb#
This covers how to load IMSDb webpages into a document format that we can use downstream.
from langchain.document_loaders import IMSDbLoader
loader = IMSDbLoader("https://imsdb.com/scripts/BlacKkKlansman.html")
data = loader.load()
data


[Document(page_content='\n\r\n\r\n\r\n\r\n                                    BLACKKKLANSMAN\r\n                         \r\n                         \r\n                         \r\n                         \r\n                                      Written by\r\n\r\n                          Charlie Wachtel & David Rabinowitz\r\n\r\n                                         and\r\n\r\n                              Kevin Willmott & Spike Lee\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n                         FADE IN:\r\n                         \r\n          SCENE FROM "GONE WITH THE WIND"\r\n                         \r\n          Scarlett O\'Hara, played by Vivian Leigh, walks through the\r\n          Thousands of injured Confederate Soldiers pulling back to\r\n          reveal the Famous Shot of the tattered Confederate Flag in\r\n          "Gone with the Wind" as The Max Stein Music Score swells from\r\n          Dixie to Taps.\r\n                         \r\n                                   BEAUREGARD- KLAN NARRATOR (O.S.)\r\n                       They say they may have lost the\r\n                       Battle but they didn\'t lose The War.\r\n                       Yes, Friends, We are under attack.\r\n                         \r\n                                                                          CUT TO:\r\n                         \r\n          A 1960\'S EDUCATIONAL STYLE FILM\r\n                         \r\n          Shot on Grainy COLOR 16MM EKTACHROME Film, The NARRATOR\r\n          BEAUREGARD, a Middle Aged


Film, The NARRATOR\r\n          BEAUREGARD, a Middle Aged but handsome, White Male, sits at a\r\n          desk, a Confederate Flag on a stand beside him. Very\r\n          Official. He is not a Southerner and speaks with articulation\r\n          and intelligence.\r\n                         \r\n                                   BEAUREGARD- KLAN NARRATOR\r\n                       You\'ve read about it in your Local\r\n                       Newspapers or seen it on The Evening\r\n                       News. That\'s right. We\'re living in\r\n                       an Era marked by the spread of\r\n                       Integration and Miscegenation.\r\n                         \r\n                                                                          CUT TO:\r\n                         \r\n          FOOTAGE OF THE LITTLE ROCK NINE\r\n                         \r\n          being escorted into CENTRAL HIGH SCHOOL, Little Rock,\r\n          Arkansas by The National Guard.\r\n                         \r\n                                   BEAUREGARD- KLAN NARRATOR\r\n                                   (V.O.)(CONT\'D)\r\n                       The Brown Decision forced upon us by\r\n                       The Jewish controlled Puppets on the\r\n                       U.S. Supreme Court compelling White\r\n                       children to go to School with an\r\n                       Inferior Race is The Final Nail in a\r\n                       Black Coffin towards America becoming\r\n                       a Mongrel Nation.\r\n                         \r\n          A QUICK SERIES OF IMAGES\r\n                         \r\n          Segregation Signs. Antebellum Photos. Happy Slaves in Old\r\n          Movies. Masters


Antebellum Photos. Happy Slaves in Old\r\n          Movies. Masters inspecting their Cotton and Tobacco with\r\n          their Slaves in The Fields. Blacks shining Shoes and working\r\n          as Butlers, Porters and Maids.\r\n                                   BEAUREGARD- KLAN NARRATOR (V.O.)\r\n                                                  (CONT\'D)\r\n                       We had a great way of Life before The\r\n                       Martin Luther Coon\'s of The World...\r\n                         \r\n                                                                          CUT TO:\r\n                         \r\n          The Billboard of Dr. Martin Luther King Jr. sitting in the\r\n          front row of a Classroom it reads: Martin Luther King in a\r\n          Communist Training School.\r\n                         \r\n                                   BEAUREGARD- KLAN NARRATOR (CONT\'D)\r\n                       ...and their Army of Commies started\r\n                       their Civil Rights Assault on our\r\n                       Holy White Protestant Values.\r\n                         \r\n          CLOSE - BOUREGARD - KLAN NARRATOR\r\n                         \r\n                                   BEAUREGARD- KLAN NARRATOR (CONT\'D)\r\n                       Do you really want your precious\r\n                       White Child going to School with\r\n                       Negroes?\r\n                         \r\n          Footage of Black and White Children playing together,\r\n          innocent.\r\n                         \r\n          Beauregard now stands by a Large Screen and points at The\r\n          Screen.\r\n                         \r\n                                   BEAUREGARD-KLAN NARRATOR


\r\n                                   BEAUREGARD-KLAN NARRATOR (CONT\'D)\r\n                       They are Lying, Dirty Monkeys...\r\n                         \r\n          FOOTAGE and STILLS of Stereotype Blacks Coons, Bucks and\r\n          shining Black Mammies. Black Soldiers in D. W. Griffith\'s\r\n          "Birth of a Nation" pushing Whites around on the Street.\r\n                         \r\n          CLOSE - BEAUREGARD\r\n                         \r\n                                   BEAUREGARD- KLAN NARRATOR (CONT\'D)\r\n                       ...Stopping at nothing to gain\r\n                       Equality with The White Man.\r\n                         \r\n          Images and Scientific charts of Blacks compared to Apes and\r\n          Monkeys.\r\n                         \r\n          CLOSE - BEAUREGARD - KLAN NARRATOR\r\n                         \r\n                                   BEAUREGARD- KLAN NARRATOR (CONT\'D)\r\n                       ...Rapists, Murderers...Craving The\r\n                       Virgin, Pure Flesh of White Women.\r\n                       They are Super Predators...\r\n                                                                             CUT TO:\r\n                         \r\n          LYNCH, The MULATTO, lusting after our LILLIAN GISH in "Birth\r\n          of a Nation." Other Lusting Images of Craving Black\r\n          Beasts!!! SEXUAL PREDATORS!!!\r\n                         \r\n                                                                             CUT TO:\r\n                         \r\n          KING KONG on Empire State Building with Fay Wray in his hand.\r\n


KING KONG on Empire State Building with Fay Wray in his hand.\r\n          GUS in "Birth of a Nation" chasing a White Woman he wants to\r\n          Rape.\r\n                         \r\n                                                                             CUT TO:\r\n                         \r\n          CLOSE - BEAUREGARD - KLAN NARRATOR\r\n                         \r\n          A Stereotype illustration of Jews controlling Negroes.\r\n                         \r\n                                   BEAUREGARD- KLAN NARRATOR (CONT\'D)\r\n                       ...and the Negro\'s insidious tactics\r\n                       under the tutelage of High Ranking\r\n                       Blood Sucking Jews! Using an Army of\r\n                       outside...\r\n                         \r\n          Beauregard continues.\r\n                         \r\n                                                                             CUT TO:\r\n                         \r\n                                   BEAUREGARD-KLAN NARRATOR(CONT\'D)\r\n                       ...Northern Black Beast Agitators...\r\n                         \r\n          Footage of The March on Washington.\r\n                         \r\n                                                                             CUT TO:\r\n                         \r\n          CLOSE - BOUREGARD - KLAN NARRATOR.\r\n                         \r\n                                   BOUREGARD- KLAN NARRATOR (CONT\'D)\r\n                       ...determined to overthrow The God\r\n                       Commanded and Biblically inspired\r\n                       Rule of The White Race.\r\n                         \r\n                                                                             CUT TO:\r\n                         \r\n          An image of an All-American White Nuclear Family.\r\n                         \r\n                                                                             CUT


an All-American White Nuclear Family.\r\n                         \r\n                                                                             CUT TO:\r\n                         \r\n          Bouregard gives his Final Words.\r\n                         \r\n                                   BOUREGARD-KLAN NARRATOR (CONT\'D)\r\n                       It\'s an International... Jewish...\r\n                       Conspiracy.\r\n          WE HEAR and end with the Corny Stinger of Music that goes\r\n          with these Education and Propaganda Films!\r\n                         \r\n                                                                             CUT TO:\r\n                         \r\n          EXT. COLORADO SPRINGS AREA - DAY\r\n                         \r\n                         DRONE SHOT\r\n                         \r\n          Superimposed: Early 70s\r\n                         \r\n          An amazing contrast. The beautiful landscape of Colorado\r\n          Springs, the City sits nestled within the rugged Mountain\r\n          terrain. The majestic Pikes Peak, the jagged beauty of The\r\n          Garden of the Gods, The plush Broadmoor Resort, The Will\r\n          Rodgers Shrine of The Sun.\r\n                         \r\n                         \r\n          EXT. COLORADO SPRINGS STREET - DAY\r\n                         \r\n          RON STALLWORTH, Black, 21, Handsome, Intelligent, sporting a\r\n          good sized Afro, rebellious but straight laced by most 1970\'s\r\n          standards.\r\n                         \r\n          Ron stares at an Ad attached to a bulletin board.\r\n                         \r\n          CLOSE - THE AD


a bulletin board.\r\n                         \r\n          CLOSE - THE AD READS:\r\n                         \r\n          JOIN THE COLORADO SPRINGS POLICE FORCE, MINORITIES ENCOURAGED\r\n          TO APPLY! Ron rips the Ad from the board.\r\n                         \r\n          EXT. COLORADO SPRINGS POLICE DEPT BUILDING. - DAY\r\n                         \r\n          INT. OFFICE OF CHIEF BRIDGES - COLORADO SPRINGS POLICE DEPT -\r\n                         DAY\r\n                         \r\n          A drab, white-walled office. Ron sits across the table from\r\n          The Assistant City Personnel Manager, MR. TURRENTINE, Black,\r\n          40\'s, business like but progressive and CHIEF BRIDGES, White,\r\n          smart, 50\'s, in a Police Uniform, a Man ready for change.\r\n                         \r\n                                    MR. TURRENTINE\r\n                       Why weren\'t you drafted into the\r\n                       Vietnam War?\r\n                         \r\n                                                  RON STALLWORTH\r\n                       I went to College.\r\n                         \r\n                                   MR. TURRENTINE\r\n                       How do you feel about Vietnam?\r\n                         \r\n                                                  RON STALLWORTH\r\n                       I have mixed feelings.\r\n                                     CHIEF BRIDGES\r\n          Would you call yourself a Womanizer?\r\n                                                  RON STALLWORTH\r\n                       No Sir, I would not.\r\n                         \r\n                                   MR.


No Sir, I would not.\r\n                         \r\n                                   MR. TURRENTINE\r\n                       Do you frequent Night Clubs?\r\n                         \r\n                                                  RON STALLWORTH\r\n                       No Sir.\r\n                         \r\n                                                  CHIEF BRIDGES\r\n                       Do you drink?\r\n                         \r\n                                                  RON STALLWORTH\r\n                       On Special occasions, Sir.\r\n                         \r\n                                   MR. TURRENTINE\r\n                       Have you ever done any Drugs?\r\n                         \r\n                                                  RON STALLWORTH\r\n                       Only those prescribed by My Doctor,\r\n                       Sir.\r\n                         \r\n          Turrentine looks at Chief Bridges.\r\n                         \r\n                                   MR. TURRENTINE\r\n                       That\'s kind of rare these days for a\r\n                       young Hip Soul Brother like you.\r\n                         \r\n                                                  RON STALLWORTH\r\n                       I know but my Father was in The\r\n                       Military and I was raised up the\r\n                       Right way, Sir.\r\n                         \r\n                                                  CHIEF BRIDGES\r\n                       How are you with people, generally?\r\n                         \r\n                                                  RON STALLWORTH\r\n                       Sir, they treat me right, I treat\r\n                       them right, like I already said I was\r\n                       raised...\r\n                         \r\n                                                  CHIEF BRIDGES\r\n                       ...Have you ever had any negative...\r\n                         \r\n          Mr. Turrentine jumps in,


negative...\r\n                         \r\n          Mr. Turrentine jumps in, impatient.\r\n                         \r\n                                   MR. TURRENTINE\r\n                       ...What would you do if another Cop\r\n                       called you a Nigger?\r\n                         \r\n                                                  RON STALLWORTH\r\n                       Would that happen...\r\n                         \r\n                                   MR. TURRENTINE\r\n                       ...Sheeeeeeettt!!!\r\n          Bridges looks at him. Turrentine waits, Ron doesn\'t know how\r\n          to respond, finally. Turrentine leans forward.\r\n                         \r\n                                   MR. TURRENTINE (CONT\'D)\r\n                       There\'s never been a Black Cop in\r\n                       this City. If we make you an Officer,\r\n                       you would, in effect, be the Jackie\r\n                       Robinson of the Colorado Springs\r\n                       Police force.\r\n                         \r\n          Mr. Turrentine lets this sink in.\r\n                         \r\n                                   MR. TURRENTINE (CONT\'D)\r\n                       And if you know anything about Jackie\r\n                       Robinson you know he had to take a\r\n                       lot of... guff... from his fellow\r\n                       Teammates, from Fans, other Teams,\r\n                       and The Press.\r\n                         \r\n                                                  RON STALLWORTH\r\n                       I know Jackie\'s Story, Sir.\r\n                         \r\n                                   MR. TURRENTINE\r\n                       Good. So, knowing that, when someone\r\n                       calls you Nigger will you be able


So, knowing that, when someone\r\n                       calls you Nigger will you be able to\r\n                       turn the other Cheek?\r\n                         \r\n          Ron evaluates the hard reality of the question. Decides.\r\n                         \r\n                                                  RON STALLWORTH\r\n                       If I need to, yes, Sir.\r\n                         \r\n                                   MR. TURRENTINE\r\n                       Son, The Mayor and I think you might\r\n                       be The Man to open things up here.\r\n                         \r\n          Ron looks at Chief Bridges.\r\n                         \r\n                                                  CHIEF BRIDGES\r\n                       I\'ll have your back but I can only do\r\n                       so much. The Weight of this is on\r\n                       You...and You alone.\r\n                         \r\n          Ron weighs The Journey ahead.\r\n                         \r\n                         OMITTED\r\n                         \r\n                         OMITTED\r\n                         \r\n          INT. RECORDS ROOM - CSPD - DAY\r\n                         \r\n          Ron sorts a file cabinet of records as OFFICER CLAY MULANEY,\r\n          60\'s, White, sits on a stool, reading a Magazine clearly\r\n          looking at a Photo of something good.\r\n          Ron looks at the Photo of the Actress Cybill Shepherd.\r\n                         \r\n                                                  RON STALLWORTH\r\n                       Cybill Shepherd. She was great in The\r\n                       Last Picture Show.\r\n                         \r\n                                                  OFFICER MULANEY\r\n                       Never saw it but


\r\n                                                  OFFICER MULANEY\r\n                       Never saw it but what you think?\r\n                         \r\n                                                  RON STALLWORTH\r\n                       She\'s a very good Actress.\r\n                         \r\n                                                  OFFICER MULANEY\r\n                       Y\'know you want some of that.\r\n                         \r\n          Ron ignores it.\r\n                         \r\n                                   OFFICER MULANEY (CONT\'D)\r\n                       Truth be told when I see one of your\r\n                       kind with a White Woman it turns my\r\n                       Stomach.\r\n                         \r\n                                                  RON STALLWORTH\r\n                       Yeah. Why\'s that?\r\n                         \r\n                                                  OFFICER MULANEY\r\n                       He could only want one thing.\r\n                         \r\n                                                  RON STALLWORTH\r\n                       What would that be?\r\n                         \r\n                                                  OFFICER MULANEY\r\n                       You like acting dumb, Y\'know.\r\n                         \r\n                                                  RON STALLWORTH\r\n                       No, I just like my questions to be\r\n                       answered.\r\n                         \r\n          A VOICE of UNIFORMED COP WHEATON calls from the other side of\r\n          the Counter.\r\n                         \r\n                                   WHEATON (O.S.)\r\n                       Hey! Anybody in there? Looking for a\r\n                       Toad here.\r\n                         \r\n          Ron walks to the Counter to see The White and sleep-deprived\r\n


Ron walks to the Counter to see The White and sleep-deprived\r\n          Cop impatiently leaning on his elbows.\r\n                         \r\n                                                  WHEATON (CONT\'D)\r\n                       Get me the record for this Toad named\r\n                       Tippy Birdsong.\r\n                         \r\n          Ron pulls up the File for Tippy Birdsong. The Photo shows a\r\n          Black Man in his twenties.\r\n                                                  WHEATON (CONT\'D)\r\n                       While you\'re at it, why don\'t you\r\n                       grab another Toad... Steven Wilson.\r\n                         \r\n          Ron pulls the File... another young Black Male, ANOTHER\r\n          SEXUAL PREDATOR!\r\n                         \r\n          INT. CSPD HALLWAY - DAY\r\n                         \r\n          Chief Bridges strides down the hall with SGT. TRAPP a soft-\r\n          spoken White Man in his 40\'s, they are discussing a File. Ron\r\n          suddenly appears walking with them.\r\n                         \r\n                                                  RON STALLWORTH\r\n                       While I\'ve got you both here. Sirs,\r\n                       I\'d like to be an Undercover\r\n                       Detective.\r\n                         \r\n          Chief Bridges and Sgt. Trapp both stop.\r\n                         \r\n                                                  CHIEF BRIDGES\r\n                       What Narcotics?\r\n                         \r\n                                                  RON STALLWORTH\r\n                       Whatever Department works, Sir.\r\n                         \r\n


Whatever Department works, Sir.\r\n                         \r\n                                   SGT. TRAPP\r\n                       You just joined The Force, Rookie.\r\n                         \r\n                                                  RON STALLWORTH\r\n                       I know, Sir but I think I could do\r\n                       some good there.\r\n                         \r\n                                   SGT. TRAPP\r\n                       Is that right?\r\n                         \r\n                                                  RON STALLWORTH\r\n                       Well, I\'m young. I think there\'s a\r\n                       niche for me. Get In where I can Fit\r\n                       In.\r\n                         \r\n                                   SGT. TRAPP\r\n                       What do you think, Chief?\r\n                         \r\n          Sgt. Trapp sees the logic, looks to Chief Bridges, who stops,\r\n          considering.\r\n                         \r\n                                                  CHIEF BRIDGES\r\n                       Think a lot of yourself, don\'t cha?\r\n                         \r\n                                                  RON STALLWORTH\r\n                       Just trying to be of help, Chief.\r\n                       Plus, I hate working in The Records\r\n                       room.\r\n          Sgt. Trapp reacts knowing Ron shouldn\'t have said that about\r\n          the Records Room. CHIEF BRIDGES looks at Ron, matter of fact.\r\n                         \r\n                                                  CHIEF BRIDGES\r\n                       Well, I think Records is a good place\r\n                       for you to start, Rookie.\r\n                         \r\n                                                  RON STALLWORTH\r\n                       Chief, want me clean


RON STALLWORTH\r\n                       Chief, want me clean shaven?\r\n                         \r\n                                                  CHIEF BRIDGES\r\n                       Keep it. I like the look.\r\n                         \r\n          Chief Bridges walks off without another word. SGT. TRAPP\r\n          gives a knowing look to Ron, who watches them walk away.\r\n                         \r\n          INT. RECORDS ROOM - CSPD - DAY\r\n                         \r\n          Ron behind the Counter. MASTER PATROLMAN ANDY LANDERS, White,\r\n          Mid-30\'s, a regular guy but there is something dangerous\r\n          there, steps up.\r\n                         \r\n                                                  LANDERS\r\n                       Need a File on a Toad.\r\n                         \r\n          Ron doesn\'t respond.\r\n                         \r\n                                                  LANDERS (CONT\'D)\r\n                       You Deaf? I said I need info on a\r\n                       Toad.\r\n                         \r\n                                                  RON STALLWORTH\r\n                       No Toads here.\r\n                         \r\n                                                   LANDERS\r\n                       Excuse me?\r\n                         \r\n                                                  RON STALLWORTH\r\n                       I said, I don\'t have any Toads. I do\r\n                       have Human Beings and if you give me\r\n                       their names I can pull the Files.\r\n                         \r\n          Landers scowls. Ron stares back at him, Eye to Eye.\r\n                         \r\n                                                  LANDERS\r\n                       Heard you think you Hot


\r\n                                                  LANDERS\r\n                       Heard you think you Hot Shit but you\r\n                       ain\'t nuthin\' but a Cold Fart. Name\'s\r\n                       Maurice, Maurice Smalls...That\r\n                       respectful enough for you, Officer\r\n                       Toad.\r\n                         \r\n          Ron pulls The File, throws it down on the Counter as Landers\r\n          snatches The File and storms off.\r\n          INT. RON\'S APARTMENT - BEDROOM - MORNING\r\n                         \r\n          As Ron sleeps, a phone rings. Ron snaps awake and grabs at\r\n          the phone on the night table.\r\n                         \r\n                                                  RON STALLWORTH\r\n                       Hello.\r\n                                    CHIEF BRIDGES (O.S.)\r\n                        It\'s Bridges. You sleeping?\r\n                         \r\n                                                    RON STALLWORTH\r\n                        Yes, Chief, I was. Just worked a\r\n                        Night Shift.\r\n                         \r\n                                    CHIEF BRIDGES (O.S.)\r\n                        I changed my mind, you\'re gonna come\r\n                        in a little earlier today. We\'ve got\r\n                        an assignment for you. 12 Noon.\r\n                        Sharp. Narcotics Division. Wear\r\n                        Street clothes.\r\n                         \r\n                                                   RON STALLWORTH\r\n                        Yes Sir, see you then. Thank You.\r\n                        Thank You.\r\n                         \r\n          Ron sits up in


Thank You.\r\n                         \r\n          Ron sits up in Bed, excited, thinking about the challenge\r\n          ahead.\r\n                         \r\n          INT. CSPD - NARCOTICS DIVISION - DAY\r\n                         \r\n          Ron, dressed in Bell-Bottoms and a Hip Italian Knit Shirt,\r\n          Marshmallow Shoes steps inside the Narcotics office, which is\r\n          literally The Basement of The Station. He looks around at The\r\n          Area Buzzing with Activity and sees\r\n                         \r\n          ANGLE - UNDERCOVER COPS\r\n                         \r\n          at their desks. Looking less like Cops and more like unkempt\r\n          Hippies or Rock N\' Rollers.\r\n                         \r\n          CLOSE - RON\r\n                         \r\n          just stands there looking at all the activity.\r\n                         \r\n          CLOSE - CHIEF BRIDGES\r\n                         \r\n          waves Ron back to the rear of The Room for privacy.\r\n                         \r\n          CLOSE - FLIP ZIMMERMAN\r\n                         \r\n                                                   FLIP\r\n                        Rookie, you\'re late.\r\n                         \r\n                                                   RON STALLWORTH\r\n                        Sorry, it won\'t happen again.\r\n                         \r\n          Flip, late 30\'s, long hair, looks like anything but a Cop, he\r\n          however is somewhat of a closed-off guy, all business, Ron\r\n          sits across from him. Chief Bridges steps before


all business, Ron\r\n          sits across from him. Chief Bridges steps before them.\r\n                                   CHIEF BRIDGES (CONT\'D)\r\n                       We\'ve got limited time so I\'ll be\r\n                       quick. That Black Radical Stokely\r\n                       Carmichael is giving a Speech Tonight\r\n                       at Bell\'s Nightingale.\r\n                         \r\n          Ron is surprised at this.\r\n                         \r\n                                                  RON STALLWORTH\r\n                       The Nightclub?\r\n                         \r\n                                                  CHIEF BRIDGES\r\n                       No, Emmanuel Missionary Baptist\r\n                       Church!!!\r\n                         \r\n          Flip just listens.\r\n                         \r\n                                   CHIEF BRIDGES (CONT\'D)\r\n                       Carmichael is a former High Muckity-\r\n                       Muck with The Black Panthers and as\r\n                       far as I\'m concerned, FBI Director J.\r\n                       Edgar Hoover was dead right when he\r\n                       said The Black Panthers are The\r\n                       Greatest Internal Threat to The\r\n                       Security of these United States. This\r\n                       Carmichael Joker, former Panther or\r\n                       not, they say he\'s a Damn Good\r\n                       Speaker and we don\'t want this\r\n                       Carmichael getting into The Minds of\r\n                       the Black People here in Colorado\r\n                       Springs and stirring them up.\r\n                         \r\n          Ron\'s face cringes at Chief Bridges\'s words. He steps to


Ron\'s face cringes at Chief Bridges\'s words. He steps to Ron.\r\n                         \r\n                                   CHIEF BRIDGES (CONT\'D)\r\n                       Ron, your assignment is to go to this\r\n                       Speech tonight and infiltrate these\r\n                       Bunch of Subversives and monitor The\r\n                       Audience reaction to Carmichael. You\r\n                       ready?\r\n                         \r\n          Flip and Chief Bridges stare at Ron.\r\n                         \r\n                                                     RON STALLWORTH\r\n                       Born Ready.\r\n                         \r\n          INT. NARCOTICS DIVISION - CSPD - NIGHT\r\n                         \r\n          Ron stands, his shirt off, as Flip wires a Wireless\r\n          Transmitter and Microphone to his body. Another Narcotics\r\n          Cop, JIMMY CREEK, 30\'s, observes the installation.\r\n                         \r\n                                                  RON STALLWORTH\r\n                       Any chance this thing Fucks Up?\r\n                                                    FLIP\r\n                       Fuck yeah.\r\n                         \r\n                                                    RON STALLWORTH\r\n                       Then what?\r\n                         \r\n                                                  JIMMY\r\n                       Just stick to The Game Plan.\r\n                         \r\n                                                    RON STALLWORTH\r\n                       Which is?\r\n                         \r\n                                                  FLIP\r\n                       Improvise. Like Jazz. This isn\'t some\r\n                       Big Bust. We just want some Intel,\r\n                       that\'s it.\r\n


We just want some Intel,\r\n                       that\'s it.\r\n                         \r\n                                                  JIMMY\r\n                       What happens if someone offers you a\r\n                       Marijuana Cigarette?\r\n                         \r\n                                                  RON STALLWORTH\r\n                       You mean a Joint?\r\n                         \r\n                                                    JIMMY\r\n                       Yeah.\r\n                         \r\n                                                  RON STALLWORTH\r\n                       "Soul Brother, I\'m already High on\r\n                       Life. Can you Dig It?"\r\n                         \r\n                                                  FLIP\r\n                       And if someone pulls a Gun on you?\r\n                         \r\n          Ron is caught off guard.\r\n                         \r\n                                                  RON STALLWORTH\r\n                       You expecting that?\r\n                         \r\n          Flip pulls his Gun.\r\n                         \r\n                                                  FLIP\r\n                       Barrel of a 45\'s in your face, Finger\r\n                       on the Trigger, now what?\r\n                         \r\n                                                  RON STALLWORTH\r\n                       Blood, get that Gun out my face.\r\n                       Peace Love and Soul.\r\n                         \r\n                                                  FLIP\r\n                       Gun is still in your face.\r\n                         \r\n          Ron gives Jimmy a wary look speaking to Flip.\r\n                                                  RON STALLWORTH\r\n                       I de-escalate. Talk calmly, firmly.\r\n                       Find a way out of there, A-Sap.\r\n                         \r\n          Jimmy nods, satisfied. Flip is finished


\r\n          Jimmy nods, satisfied. Flip is finished with The Wiring. Ron\r\n          takes a deep breath.\r\n                         \r\n                                                  FLIP\r\n                       Relax, we\'ll be outside, listening\r\n                       in.\r\n                         \r\n                                                  RON STALLWORTH\r\n                       Can I order a Drink at The Bar?\r\n                         \r\n          Flip steps away, no comment.\r\n                         \r\n                                                  JIMMY\r\n                       That\'s fine, just don\'t get Shit\r\n                       Faced.\r\n                         \r\n                                                  FLIP\r\n                       Got it?\r\n                         \r\n                                                  RON STALLWORTH\r\n                       I got it. I\'m gone.\r\n                         \r\n          Jimmy laughs, Slaps Ron on the back.\r\n                         \r\n          EXT. CITY STREET - OUTSKIRTS OF DOWNTOWN - NIGHT\r\n                         \r\n          Ron pulls an unmarked Sedan to the curb. He gets out and\r\n          looks around.\r\n                         \r\n          A Crowded sidewalk overflows into The Street, filling a line\r\n          that Bottlenecks into The Club with the Sign: \r\n                         \r\n          CLOSE SIGN - BELL\'S NIGHTINGALE\r\n                         \r\n          ANGLE - TONIGHT: KWAME TURE SPEAKS\r\n                         \r\n          Ron walks to the back of the line. He becomes an Every\r\n          Brother slowly moving forward as People enter. As


line. He becomes an Every\r\n          Brother slowly moving forward as People enter. As he moves\r\n          forward he notices a striking Woman at the Front Door.\r\n                         \r\n          ANGLE - PATRICE DUMAS\r\n                         \r\n          Mid 20\'s, an Angela Davis Afro, she wears a Hip array of\r\n          Militant wear, Black Leather Jacket, Love Beads but on her it\r\n          looks fantastic. Ron is taken by her Beauty, he watches as\r\n          she monitors the door, clearly in charge.\r\n                         \r\n                                                  RON STALLWORTH\r\n                       How are you doing, my Soul Sista?\r\n                         \r\n          Patrice gives Ron a good look summing him up.\r\n                                                  PATRICE\r\n                       I\'m doing fine, my Brother. This is\r\n                       going to be an Amazing Night.\r\n                         \r\n                                                  RON STALLWORTH\r\n                       Indeed it is.\r\n                         \r\n                                                  PATRICE\r\n                       Have you heard Brother Kwame speak\r\n                       before?\r\n                         \r\n                                                    RON STALLWORTH\r\n                       Who?\r\n                         \r\n                                                    PATRICE\r\n                       Kwame Ture.\r\n                         \r\n                                                  RON STALLWORTH\r\n                       Actually, I haven\'t, I didn\'t know he\r\n                       changed his name.\r\n                         \r\n                                                  PATRICE\r\n                       Yes, after he moved to Africa. He\r\n                       took the names of Kwame


Yes, after he moved to Africa. He\r\n                       took the names of Kwame Nkrumah of\r\n                       Ghana and his Mentor Sekou Toure of\r\n                       Guinea to honor The Great Leaders.\r\n                         \r\n                                                  RON STALLWORTH\r\n                       That\'s Heavy. Do you know how he got\r\n                       to Colorado Springs?\r\n                         \r\n                                                  PATRICE\r\n                       The Colorado College Black Student\r\n                       Union invited Brother Ture.\r\n                         \r\n                                                  RON STALLWORTH\r\n                       I can dig it. I can dig it. You with\r\n                       The Black Student Union?\r\n                         \r\n                                                  PATRICE\r\n                       I\'m The President.\r\n                         \r\n                                                  RON STALLWORTH\r\n                       Right On. Right On.\r\n                         \r\n          INT. BELL\'S NIGHTINGALE - NIGHT\r\n                         \r\n          The Club is PACKED, a Sea of Black Faces punctuated by an\r\n          occasional White Face. Ron moves through The Crowd. He avoids\r\n          direct Eye Contact, trying like Hell to act casual.\r\n                         \r\n          Ron steps to The Bar and signals The BARTENDER JABBO, 60\'s,\r\n          Black.\r\n                                                  RON STALLWORTH\r\n                       Rum and Coke with Lime.\r\n                         \r\n          As Jabbo makes his Drink, something catches Ron\'s Eye.\r\n          Patrice exits through a door with several Black


Ron\'s Eye.\r\n          Patrice exits through a door with several Black Bodyguards.\r\n                         \r\n          Ron observes as a Tall figure comes out from Backstage with\r\n          Patrice, ODETTA and HAKEEM. The Tall figure hangs back\r\n          covered by The Bodyguards.\r\n                         \r\n          Ron on his feet, Black Fist in the air with The Crowd.\r\n          Patrice on Stage with Kwame Ture with her Fist raised too.\r\n          The Shouting and Chanting finally cease, as Patrice speaks.\r\n                         \r\n                                                  PATRICE\r\n                       The Black Student Union of Colorado\r\n                       College is honored to bring The\r\n                       Vanguard of Revolutionaries fighting\r\n                       for The Rights of Black People all\r\n                       over The World. Let\'s show some Black\r\n                       Love to The One and Only, The Former\r\n                       Prime Minister of The Black Panther\r\n                       Party, The Brother Man with The Plan\r\n                       who\'s stickin\'it to the Man, put your\r\n                       Hands together my People... for Our\r\n                       Kwame Ture.\r\n                         \r\n          PANDEMONIUM! As Kwame Ture walks onto a small raised stage\r\n          with Patrice. The entire place rises to their Feet, Fists\r\n          Raised, Clapping, Shouting "Ungawa Black Power!" Ron watches\r\n          as Patrice and Kwame hug. Patrice sits on Stage with Odetta\r\n          and Hakeem.\r\n                         \r\n


Odetta\r\n          and Hakeem.\r\n                         \r\n          Kwame soaks in the Crowd\'s reaction, until...\r\n                         \r\n                                                   KWAME TURE\r\n                       Thank you all for coming out tonight,\r\n                       My Beloved Sista\'s and Brotha\'s. I\r\n                       Thank you...\r\n                         \r\n          CLOSE - KWAME TURE\r\n                         \r\n          towering at Six Feet-Four with an infectious smile and\r\n          Flawless Dark Skin, he\'s oozing Charisma out of every pore.\r\n          He stands behind a small podium.\r\n                         \r\n                                   KWAME TURE (CONT\'D)\r\n                       ...I\'m here to tell you this evening\r\n                       it is time for you to stop running\r\n                       away from being Black. You are\r\n                       College Students, you should think.\r\n                                   KWAME TURE (CONT\'D)\r\n                       It is time for you to understand that\r\n                       you as The growing Intellectuals of\r\n                       this Country, you must define Beauty\r\n                       for Black People, Now that\'s Black\r\n                       Power.\r\n                         \r\n                                                  BLACK MASS\r\n                       BLACK POWER!!! BLACK POWER!!!\r\n                         \r\n          The Black Students in The Audience are laser focused on him.\r\n                         \r\n                                                  KWAME TURE\r\n                       Is Beauty defined by someone with a\r\n                       Narrow Nose? Thin Lips? White Skin?\r\n                       You


Narrow Nose? Thin Lips? White Skin?\r\n                       You ain\'t got none of that. If your\r\n                       Lips are Thick, Bite them in. Hold\r\n                       your Nose! Don\'t drink Coffee because\r\n                       it makes you Black!\r\n                         \r\n          The Audience laughs! Loving it.\r\n                         \r\n                                   KWAME TURE (CONT\'D)\r\n                       Your Nose is Boss, your Lips are\r\n                       Thick, your skin is Black, you are\r\n                       Black and you are Beautiful!\r\n                         \r\n          Everyone cheers including Ron!\r\n                         \r\n                                   KWAME TURE (CONT\'D)\r\n                       We want to be like The White people\r\n                       that oppress us in this Country and\r\n                       since they hate us, we hate\r\n                       ourselves. You dig Tarzan? I remember\r\n                       that when I was a Boy I used to go\r\n                       see Tarzan Movies on Saturdays. I\r\n                       loved me some Jane too. Jane was A\r\n                       Fine White Woman. White Tarzan used\r\n                       to Beat up The Black Natives. I would\r\n                       sit there yelling "Kill The Beasts,\r\n                       Kill The Savages, Kill \'Em!" Actually\r\n                       I was saying: "Kill Me." It was as if\r\n                       a Jewish Boy watched Nazis taking\r\n                       Jews off to Concentration Camps and\r\n                       cheered them on. Today, I want The\r\n                       Chief to beat The Hell out of Tarzan\r\n                       and


want The\r\n                       Chief to beat The Hell out of Tarzan\r\n                       and send him back to The Caves of\r\n                       Europe. But it takes time to become\r\n                       Free of The Lies and their shaming\r\n                       effect on Black Minds. It takes time\r\n                       to reject the most Important Lie:\r\n                       that Black People inherently can\'t do\r\n                       the same things White People can do\r\n                       unless White People help them.\r\n          The Audience laughing, overwhelmed, shouting back support! A\r\n          ROAR from The Crowd. Ron finds himself clapping along.\r\n                         \r\n                                                     RON STALLWORTH\r\n                          Right on!!! Right On!!!\r\n                         \r\n          Ron looks around at everyone caught up in Kwame\'s spell.\r\n                         \r\n                                      KWAME TURE (CONT\'D)\r\n                          If a White Man wants to Lynch Me,\r\n                          that\'s his Problem. If he\'s got The\r\n                          Power to Lynch Me, that\'s My Problem.\r\n                          Racism is not a question of Attitude;\r\n                          it\'s a question of Power.\r\n                         \r\n          Ron is struck by the remark.\r\n                         \r\n                                      KWAME TURE (CONT\'D)\r\n                          The vast majority of Negroes in this\r\n                          Country live in Captive Communities\r\n                          and must endure their conditions of\r\n                          Oppression because and only because\r\n                          they are Black and Powerless. Now We\r\n                          are being shot


they are Black and Powerless. Now We\r\n                          are being shot down like Dogs in the\r\n                          streets by White Racist Police. We\r\n                          can no longer accept this Oppression\r\n                          without retribution. The War in\r\n                          Vietnam is Illegal and Immoral. I\'d\r\n                          rather see a Brother Kill a Cop than\r\n                          Kill a Vietnamese. At least he\'s got\r\n                          a reason for Killing The Cop. When\r\n                          you Kill a Vietnamese you\'re a Hero\r\n                          and you don\'t even know why you\r\n                          Killed him. At least if you Kill a\r\n                          Cop you\'re doing it for a reason.\r\n                         \r\n          Another Applause Break.\r\n                         \r\n          CLOSE - RON\r\n                         \r\n          Ron listens, challenged, torn.\r\n                         \r\n          INT. BELL\'S NIGHTINGALE - NIGHT\r\n                         \r\n          Kwame holds The Crowd in The Palm of his Hand. Members of the\r\n          Audience who were sitting already are rising to their Feet...\r\n                         \r\n          CLOSE - RON\r\n                         \r\n          sits, claps vigorously, as if forgetting he is Undercover...\r\n                         \r\n          CLOSE - KWAME\r\n                                     KWAME TURE (CONT\'D)\r\n                         In closing I know it\'s getting late,\r\n                         may I leave you Sista\'s and Brothers\r\n                         with these Last


may I leave you Sista\'s and Brothers\r\n                         with these Last Words. "If I am not\r\n                         for myself, who will be? If I am for\r\n                         myself alone, who am I? If not now,\r\n                         when? And if not you, who?" We need\r\n                         an Undying Love for Black People\r\n                         wherever We may be. Good Night and\r\n                         POWER TO THE PEOPLE, POWER TO THE\r\n                         PEOPLE.\r\n                         \r\n            The BLACK MASS STANDS AS ONE WITH KWAME TURE.\r\n                         \r\n                                     KWAME TURE AND BLACK MASS\r\n                         ALL POWER TO ALL THE PEOPLE\r\n                         ALL POWER TO ALL THE PEOPLE\r\n                         ALL POWER TO ALL THE PEOPLE\r\n                         \r\n            Caught up in the moment, Ron gathers himself, as if\r\n            remembering why he is here. Kwame takes Patrice\'s Hand and\r\n            raises it in Celebration and Unity!\r\n                         \r\n            INT. BELL\'S NIGHTINGALE - NIGHT\r\n                         \r\n            Ron moves down the Greeting Line for Kwame. He watches as\r\n            Patrice stands near him. Kwame pulls her in close, whispers\r\n            something in her ear. She smiles, a bit smitten.\r\n                         \r\n            Ron watches as he finally reaches Kwame, shaking his hand.\r\n                         \r\n                                                    RON STALLWORTH\r\n                         Brother Ture,


\r\n                                                    RON STALLWORTH\r\n                         Brother Ture, do you really think a\r\n                         War between The Black and White Race\r\n                         is inevitable?\r\n           Kwame pulls Ron in close toward his face. Too close.\r\n                         \r\n             INT. SURVEILLANCE CAR - BELL\'S NIGHTINGALE - NIGHT\r\n                         \r\n            Flip and Jimmy wearing Headphones listening react to ear-\r\n            splitting Audio feedback.\r\n                         \r\n          INT. BELL\'S NIGHTINGALE - NIGHT\r\n                         \r\n            Ron stands mid-grip with Kwame. Nerves pinballing. Kwame\r\n            lowers his voice, looking around conspiratorially.\r\n                         \r\n                                                    KWAME TURE\r\n                         Brother, arm yourself. Get ready.\r\n                         The Revolution is coming. We must\r\n                         pick up a Gun and prepare\r\n                         ourselves...Trust me, it is coming.\r\n                         \r\n            Kwame pulls back. Returns to his normal speaking voice.\r\n                                     KWAME TURE (CONT\'D)\r\n                         Thank you for your support, Brother.\r\n                         \r\n            EXT. BELL\'S NIGHTINGALE - FRONT ENTRANCE - NIGHT\r\n                         \r\n            Ron is waiting outside as Patrice steps out, followed by\r\n            Odetta and Hakeem. Ron nears her.\r\n                         \r\n                                                    RON STALLWORTH\r\n                         I don\'t know what you have


RON STALLWORTH\r\n                         I don\'t know what you have planned\r\n                         now but maybe I could buy you a\r\n                         Drink?\r\n                         \r\n                                                    PATRICE\r\n                         I\'m waiting for Brother Kwame, I have\r\n                         to make sure he gets back safely to\r\n                         the Hotel and he\'s squared away.\r\n                         \r\n                                                    RON STALLWORTH\r\n                         I can dig it.\r\n                         \r\n            Ron starts to walk away.\r\n                         \r\n                                                    PATRICE\r\n                         Maybe, if it\'s not too late, I\'ll\r\n                         meet you at The Red Lantern. You know\r\n                         where that is?\r\n                         \r\n                                                      RON STALLWORTH\r\n                         I do.\r\n                         \r\n                                                    PATRICE\r\n                         So I\'ll see you then.\r\n                         \r\n                                                    RON STALLWORTH\r\n                         Cool. All Power to All The People.\r\n                         \r\n          INT. RED LANTERN INN - NIGHT\r\n                         \r\n            Black folks are dancing, getting down. At the bar, Ron looks\r\n            at his watch having been there a while. He finishes his Rum\r\n            and Coke with Lime watching the door open but it is not\r\n            Patrice. He decides to call it a Night, stepping off his\r\n            stool, paying his Tab to BRO POPE, The Bartender when...\r\n                         \r\n


to BRO POPE, The Bartender when...\r\n                         \r\n                                                    PATRICE\r\n                         Sorry I\'m late...\r\n                         \r\n            Patrice is right there near him. She flops down on the Bar\r\n            stool, exhausted, and lights up a Kool Cigarette.\r\n                         \r\n                                                    PATRICE (CONT\'D)\r\n                         ...You won\'t believe what happened.\r\n          Patrice says to Bro Pope, The BARTENDER.\r\n                                                  PATRICE (CONT\'D)\r\n                       Bro Pope, Seven and Seven, please...\r\n                       The Pigs pulled us over.\r\n                         \r\n                                                  RON STALLWORTH\r\n                       Say what?\r\n                         \r\n                                                  PATRICE\r\n                       Yeah, they knew Brother Kwame was in\r\n                       Town. Made us get out the Car. Pigs\r\n                       pulled us over for no reason. Total\r\n                       harassment.\r\n                         \r\n                                                  RON STALLWORTH\r\n                       True?\r\n                         \r\n                                                  PATRICE\r\n                       Truth. Do Four Dogs have Four\r\n                       Assholes?\r\n                         \r\n                                                                             CUT TO:\r\n                         \r\n          EXT. COLORADO SPRINGS STREET - NIGHT\r\n                         \r\n          Patrice\'s Car is pulled over and a Uniformed Cop gets out his\r\n          Squad Car revealing Master Patrolman Landers. He instructs\r\n          them all with his hand on his


Patrolman Landers. He instructs\r\n          them all with his hand on his Revolver.\r\n                         \r\n                                   PATRICE (V.O.)(CONT\'D)\r\n                       We\'re tired of Police Brutality.\r\n                       We\'re tired of Police Murdering Black\r\n                       Folks.\r\n                         \r\n                                                  LANDERS\r\n                       All right everybody out the vehicle.\r\n                       Now!!!\r\n                         \r\n          Kwame, Patrice, Hakeem, and Odetta climb out of the vehicle.\r\n          Landers pushes Kwame against the Car.\r\n                         \r\n                                                  LANDERS (CONT\'D)\r\n                       I don\'t wanna see nuthin\' but Black\r\n                       Asses and Black Elbows. Spread \'em!!!\r\n                         \r\n          Kwame, Patrice, Hakeem and Odetta are all Spread Eagle\r\n          against the Car. Master Patrolman Landers pats them down.\r\n          Another Police Cruiser pulls up. TWO MORE COPS, SHARPE and\r\n          CINCER, both White 50\'s, get out and observe.\r\n                         \r\n          CLOSE - LANDERS\r\n                         \r\n          He takes Extra Time patting down Patrice getting some\r\n          "Groping" in for Good Measure.\r\n                                                     LANDERS (CONT\'D)\r\n                          Search The Car. I know these Niggers\r\n                          are holding something.\r\n                         \r\n          Cincer and Sharpe enter Patrice\'s


\r\n          Cincer and Sharpe enter Patrice\'s Car, searching it. Landers\r\n          turns Kwame around, facing him.\r\n                         \r\n                                                     LANDERS (CONT\'D)\r\n                          You that so called Big Shot Panther\r\n                          Nigger aren\'t you? Heard you was in\r\n                          Town, Stokely.\r\n                         \r\n                                                     KWAME TURE\r\n                          My Name is Kwame Ture.\r\n                         \r\n          Landers stares him down for a moment. You think he\'s gonna\r\n          slug him but he thinks better. The other Cops go through the\r\n          Car searching, throwing things around.\r\n                         \r\n                                                     LANDERS\r\n                          I know you Black Bastards are\r\n                          holding. What you got in there some\r\n                          Weed, Pills, Heroin?\r\n                         \r\n          Patrice, Kwame, Odetta, and Hakeem and the others just stare\r\n          back, silent.\r\n                         \r\n                                                       OFFICER CINCER\r\n                          It\'s clean.\r\n                         \r\n          Nothing more to say. Landers gets in Patrice\'s Face.\r\n                         \r\n                                                     LANDERS\r\n                          You get this Black Panther outta\'\r\n                          Colorado Springs before Sunrise. Hear\r\n                          ME??? Or you all go to Jail.\r\n                         \r\n          CLOSE - KWAME\r\n                         \r\n                                                     KWAME TURE\r\n                          Black people were