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
+10-9Lines changed: 10 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
# teletext-twitter
2
-
Reads your Twitter timeline or searches for tweets and turns them into teletext pages for your Raspberry Pi
2
+
Display Twitter timelines or searches for tweets and turns them into teletext pages for your Raspberry Pi
3
3
4
4

5
5

@@ -24,11 +24,13 @@ After getting these up and running there are some setup tasks to do. Rename conf
24
24
25
25
1) Your Twitter access tokens: You can find a good guide for doing this here - https://iag.me/socialmedia/how-to-create-a-twitter-app-in-8-easy-steps/ You will need to pick a unique name for the app. Which is annoying. Pick anything you want that isn't taken. Maybe add your name at the end.
26
26
2) Check where your pages will be saved to: Change the tti_path line too if you've changed your Teefax location. You can also customise the page number.
27
-
3) Change the colours if you want: Theme support is detailed below
27
+
3) Change the theme if you want: Theme support is detailed below
28
+
29
+
## Usage
28
30
29
31
When you've setup your config.py you can run the script like this example that grabs your home timeline:
30
32
31
-
`python3 teletext-twitter -t` (add -h to show options - also listed below)
33
+
`python3 teletext-twitter -m home` (add -h to show options - also listed below)
32
34
33
35
The script will constantly update your chosen page number (default is 153 - chosen because it used to be used for this purpose on Teefax in the past) in the main teletext folder (which defaults in VBIT2 to /home/pi/teletext/).
34
36
@@ -48,7 +50,7 @@ You can change the colours of the main header bar and the thin separator.
48
50
49
51
You can also change the colours of a tweet poster's username, timestamp, and the text of the tweet itself.
50
52
51
-
Finally, the title text at the top can be changed, although there is a character limit.
53
+
Finally, the title text at the top can be changed, although there is a 30 character limit or things look wonky.
52
54
53
55
## Notes
54
56
* At this moment in time the script reads 5 tweets. Further versions will improve on this by writing multiple tweets, possibly in subpages :-O
@@ -61,17 +63,16 @@ Apart from those notes, things should work ok. Have fun, turn back the clock, an
Copy file name to clipboardExpand all lines: teletext-twitter/__main__.py
+14-15Lines changed: 14 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -21,26 +21,21 @@
21
21
defparse_args():
22
22
parser=argparse.ArgumentParser(description="Reads your Twitter timeline and turns it into teletext pages for your Raspberry Pi.")
23
23
24
-
parser.add_argument("-t", "--timeline", action="store_true", dest="home_timeline", help="download your latest home timeline", default=False)
25
-
parser.add_argument("-s", "--search", action="store_true", dest="search", help="specify a term to search for")
26
-
parser.add_argument("-q", "--query", type=str, help="a search query, hashtags supported if you put quoted around the string")
24
+
parser.add_argument("-m", "--mode", type=str, help="choose between different modes - home, user or search")
25
+
parser.add_argument("-q", "--query", type=str, help="a search query, either a search term or a username. hashtags supported if you put quotes around the string")
27
26
parser.add_argument("-d", "--delay", type=int, default=60, help="seconds between timeline scrapes (minimum is 60 seconds - lower values have no effect)")
0 commit comments