You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,24 @@ python T3_Scraper.py
38
38
-`ENGLISH_ONLY_REGEX`: Set to `True` to filter for English-only trends based on regex patterns.
39
39
-`TWEET_MAX_CHARS`: The character limit for hashtags (default is 280).
40
40
41
+
## Creating a Standalone Executable
42
+
43
+
To create a standalone executable from the Python script using PyInstaller:
44
+
45
+
1. Install PyInstaller:
46
+
47
+
```bash
48
+
pip install pyinstaller
49
+
```
50
+
51
+
2. Navigate to the directory containing your script and run the following command:
52
+
53
+
```bash
54
+
pyinstaller --onefile T3_Scraper.py
55
+
```
56
+
57
+
This will generate a standalone executable in the `dist` directory. You can run this executable without needing to install Python or any dependencies on the target machine.
58
+
41
59
## Notes
42
60
43
61
- Ensure you have the Chrome WebDriver installed. You can use the WebDriver Manager to automatically handle this.
0 commit comments