So, I downloaded my Twitter data to be on the safe side and found this which offers a way of making that info readable/useable offline.
https://github.com/timhutton/twitter-archive-parser
But I'm not at all clear how to do 3 and 4. I didn't think it was possible run a command within a folder?
Help, please.
Bev
I don't want to spam the list but it occurred to me that last subject heading was unlikely to get anyone to read it!
So, is this (link below) the best way of trying to get the html info into a form that can be read entirely offline or is there a better to do this for Linux? Happy to do this in Terminal if given the commands to use.
Bev.
On 12/11/2022 09:45, Bev Nicolson wrote:
So, I downloaded my Twitter data to be on the safe side and found this which offers a way of making that info readable/useable offline.
https://github.com/timhutton/twitter-archive-parser
But I'm not at all clear how to do 3 and 4. I didn't think it was possible run a command within a folder?
Help, please.
Bev
Hi,
I don't use Twitter enough to really care about any of the data recovery aspects, but since you asked on the list and have had no help, I thought I'd see if I can help at least get a conversation going that will get others to join in. I'm replying sans-coffee, so apologies for mistakes etc.
On Mon, 14 Nov 2022 at 09:34, Bev Nicolson lumos@gmx.co.uk wrote:
So, is this (link below) the best way of trying to get the html info into a form that can be read entirely offline
I don't know if it's the best way to do it. Because I don't really use Twitter and don't really have a need to do what you are asking. However it occurs to me that it doesn't really matter if it's the best way to do it, surely if you take the archive of your Twitter data, you have a copy, and you can keep using that master copy for other tools, some of which may work better than other tools. If this tool doesn't work, you still have your archived Twitter data to try on some other tool (just make sure you keep a backup somewhere).
or is there a better to do this for Linux? Happy to do this in Terminal if given the commands to use.
But your original link had commands that were given as instructions, did you try them? Step 3 gets you to copy the Github python script from your link into your unzipped Twitter data folder, and then step 4 gets you to run that python script from within that folder.
On 12/11/2022 09:45, Bev Nicolson wrote:
So, I downloaded my Twitter data to be on the safe side and found this which offers a way of making that info readable/useable offline.
https://github.com/timhutton/twitter-archive-parser
But I'm not at all clear how to do 3 and 4. I didn't think it was possible run a command within a folder?
Yes, it is possible to run a command within a folder. In fact, aren't we doing that any time we run commands on the command line? We always have a current working directory (folder). Usually it is in your /home/<username> but can be anywhere. All step 4 asks you to do is to run that python script from within the folder that contains your extracted Twitter data.
Best of luck, Srdjan
On 14/11/2022 10:54, Srdjan Todorovic wrote:
Hi,
<snip> I'm not actually sure it matters if you know how Twitter works. I think it's just how do I get a huge html file to read and play about with without having to open a browser or have a still active account (if Twitter does go up in metaphorical flames.) I may be wrong.
But your original link had commands that were given as instructions, did you try them? Step 3 gets you to copy the Github python script from your link into your unzipped Twitter data folder, and then step 4 gets you to run that python script from within that folder.
<snip> Yes, I did, but see below.
Yes, it is possible to run a command within a folder. In fact, aren't we doing that any time we run commands on the command line? We always have a current working directory (folder). Usually it is in your /home/<username> but can be anywhere. All step 4 asks you to do is to run that python script from within the folder that contains your extracted Twitter data.
This is where I get stuck. I think I've got the location but Terminal says it can't find it and I've tried several times. (And humour me here. Is that what it means by running a script in a folder? Typing in the folder location then asking the script to run?)
Bev
On Mon, 14 Nov 2022 at 15:17, Bev Nicolson lumos@gmx.co.uk wrote:
Yes, it is possible to run a command within a folder. In fact, aren't we doing that any time we run commands on the command line? We always have a current working directory (folder). Usually it is in your /home/<username> but can be anywhere. All step 4 asks you to do is to run that python script from within the folder that contains your extracted Twitter data.
This is where I get stuck. I think I've got the location but Terminal says it can't find it and I've tried several times. (And humour me here. Is that what it means by running a script in a folder? Typing in the folder location then asking the script to run?)
So your question boils down to "how to run a script in linux?" If you Google this exact phrase "how to run a script in linux", it will show you a bunch of steps at the top of the search results, below the search bar, but above all the search results. I'm not sure how to replicate this here as I'm not sure if we can send screenshots in these emails.
1) Open the terminal. Go to the directory where you want to run your script. 2) Make the script executable with command chmod +x <fileName>. 3) Run the script using ./<fileName>.
Best wishes, Srdj
On 14/11/2022 16:27, Srdjan Todorovic wrote:
On Mon, 14 Nov 2022 at 15:17, Bev Nicolson lumos@gmx.co.uk wrote:
Yes, it is possible to run a command within a folder. In fact, aren't we doing that any time we run commands on the command line? We always have a current working directory (folder). Usually it is in your /home/<username> but can be anywhere. All step 4 asks you to do is to run that python script from within the folder that contains your extracted Twitter data.
This is where I get stuck. I think I've got the location but Terminal says it can't find it and I've tried several times. (And humour me here. Is that what it means by running a script in a folder? Typing in the folder location then asking the script to run?)
So your question boils down to "how to run a script in linux?" If you Google this exact phrase "how to run a script in linux", it will show you a bunch of steps at the top of the search results, below the search bar, but above all the search results. I'm not sure how to replicate this here as I'm not sure if we can send screenshots in these emails.
- Open the terminal. Go to the directory where you want to run your script.
- Make the script executable with command chmod +x <fileName>.
- Run the script using ./<fileName>.
Best wishes, Srdj
I can see this should be really straight forward but it's not making it so. It cannot find the file though I'm sure, as far as I can be, that I'm entering the right location. And I have googled and will keep at it but I am mightily puzzled.
Bev
Been getting lots of help on this off list and have got a **long way** forward, but I think I see what the issue is. The script is python3, I have python 2.7.17. Anyone know how to resolve this? (Mint 19.) Is it possible/wise/sensible to upgrade with apt get or is that the way of foolishness?
Bev
On 14/11/2022 09:20, Bev Nicolson wrote:
I don't want to spam the list but it occurred to me that last subject heading was unlikely to get anyone to read it!
So, is this (link below) the best way of trying to get the html info into a form that can be read entirely offline or is there a better to do this for Linux? Happy to do this in Terminal if given the commands to use.
Bev.
On 12/11/2022 09:45, Bev Nicolson wrote:
So, I downloaded my Twitter data to be on the safe side and found this which offers a way of making that info readable/useable offline.
https://github.com/timhutton/twitter-archive-parser
But I'm not at all clear how to do 3 and 4. I didn't think it was possible run a command within a folder?
Help, please.
Bev
On 16/11/2022 12:40, Bev Nicolson wrote:
Been getting lots of help on this off list and have got a **long way** forward, but I think I see what the issue is. The script is python3, I have python 2.7.17. Anyone know how to resolve this? (Mint 19.) Is it possible/wise/sensible to upgrade with apt get or is that the way of foolishness?
Bev
A quick google suggests an upgrade of this one item (on its own, that is) is a really dumb idea.
For info, I get to
./parser.py or python parser.py
and it says there's no such file or there are syntax errors.
Bev
forward, but I think I see what the issue is. The script is python3, I have python 2.7.17. Anyone know how to resolve this? (Mint 19.) Is it possible/wise/sensible to upgrade with apt get or is that the way of foolishness?
I'd be really surprised if you don't have python3 installed on your system.
Just try typing python3 instead of python and see what happens.
I wouldn't touch system python. If you need a different version, use a tool like pyenv to install and manage "your" python version(s).
On 16/11/2022 13:34, Ewan Slater wrote:
forward, but I think I see what the issue is. The script is python3, I have python 2.7.17. Anyone know how to resolve this? (Mint 19.) Is it possible/wise/sensible to upgrade with apt get or is that the way of foolishness?
I'd be really surprised if you don't have python3 installed on your system.
Just try typing python3 instead of python and see what happens.
I wouldn't touch system python. If you need a different version, use a tool like pyenv to install and manage "your" python version(s). _______________________________________________
And it was so. Phew, potentially. So should I specify python3 in the command then? Or something else?
Bev
On 16/11/2022 14:41, steve-ALUG@hst.me.uk wrote:
On 16/11/2022 13:40, Bev Nicolson wrote:
And it was so. Phew, potentially. So should I specify python3 in the command then? Or something else?
Instead of typing
python parser.py
type
python3 parser.py
Steve
Nearly there! I was in the wrong folder and then I wasn't and it parsed. I have all the text now. It's now suggesting that in order to get the images/photos I need a script called download_better_images.py (text from the python script) the py file. How do I run that? I have tried
./download_better_images.py by the way.
Bev
On 16/11/2022 15:23, Bev Nicolson wrote: <snip>
Nearly there! I was in the wrong folder and then I wasn't and it parsed. I have all the text now. It's now suggesting that in order to get the images/photos I need a script called download_better_images.py (text from the python script) the py file. How do I run that? I have tried
./download_better_images.py by the way.
Bev
Sorted! I went back to the github page and took it from there. Thank you everyone!
Bev
On Wed, Nov 16, 2022 at 12:40:50PM +0000, Bev Nicolson wrote:
Been getting lots of help on this off list and have got a **long way** forward, but I think I see what the issue is. The script is python3, I have python 2.7.17. Anyone know how to resolve this? (Mint 19.) Is it possible/wise/sensible to upgrade with apt get or is that the way of foolishness?
Python 2.7 is "out of support" now, although many distributions are still using it.
However you should be able to install python3 without any issues, all (well, all the ones I have come across) distributions run quite happily with both versions of python installed.
With python3 becoming the standard you will need it some time anyway.
So 'apt install python3' is what I'd do. (or 'apt get install python3').
On 12/11/2022 09:45, Bev Nicolson wrote:
So, I downloaded my Twitter data to be on the safe side and found this which offers a way of making that info readable/useable offline.
https://github.com/timhutton/twitter-archive-parser
But I'm not at all clear how to do 3 and 4. I didn't think it was possible run a command within a folder?
Help, please.
OK, Looking at https://github.com/timhutton/twitter-archive-parser
1 & 2 Download your twitter archive. It'll be a zip file. Assuming it's in the download directory. You'll need to extract it so it expands into normal files in folders. Usually the simplest way is to right click and click something like "Extract here". If the file was called "Archive.zip", the folder would likely be called Archive, off your Downloads folder. You could extract this somewhere else if you wanted too. I'm assuming it's in /home/bev/Downloads/Archive
3. Right click on parser.py on that webpage. Use "save as" and make sure it's saved in /home/bev/Downloads/Archive (or wherever else you put the archive). If you couldn't use save-as, then download it, find it, then move it.
4. Open a command prompt/terminal window. Do cd /home/bev/Downloads/Archive (or replace with whichever directory you chose). They want you to run it with python3, so I would try python3 parser.py.
failing that do python parser.py
That, I think, is all there is to it.
I hope that helps. Steve
Quick query. When you say ‘no file found’ - are you referring to the error message from the script: https://github.com/timhutton/twitter-archive-parser/blob/fed2c380042b79a74a4...
You need to have your twitter -export zip file in the same folder.
JT
On 15 November 2022 at 20:36:46, steve-alug@hst.me.uk (steve-alug@hst.me.uk) wrote:
On 12/11/2022 09:45, Bev Nicolson wrote:
So, I downloaded my Twitter data to be on the safe side and found this
br/>> which offers a way of making that info readable/uuseable offline.
https://github.com/timhutton/twitter-archive-parser
But I'm not at all clear how to do 3 and 4. I didn't think it was br/>>
possible run a command within a folder??
Help, please.
OK, Looking at https://github.com/timhutton/twitter-archive-parser
1 & 2 Download your twitter archive. It'll be a zip file. Assuming br/>it's in the download directory. You'll neeed to extract it so it expands br/>into normal files in folders.&nbssp; Usually the simplest way is to right br/>click and click somethinng like "Extract here". If the file was called br/>""Archive.zip", the folder would likely be called Archive, off your br/>DDownloads folder. You could extract this somewhere else if you wanted br/>too. I'm assuming it's in /home/bev/Downloads/Archive <
3. Right click on parser.py on that webpage. Use "save as" and make br/>sure it's saved in /home/bev/Downloads/Archivee (or wherever else you br/>put the archive). If you couldn't uuse save-as, then download it, find br/>it, then move it. <
4. Open a command prompt/terminal window. Do cd /home/bev/Downloads/Archive (or replace with whichever directory you chose). They want you to run it with python3, so I would try python3 parser.py.
failing that do python parser.py
That, I think, is all there is to it.
I hope that helps. Steve _______________________________________________ To unsubscribe send an email to main-leave@lists.alug.org.uk http://www.alug.org.uk/ Unsubscribe? See message headers or the web site above!