ubuntu下抓flash缓存
来源:互联网 发布:delphi python 编辑:程序博客网 时间:2024/06/13 02:58
今天在chrome上看了个MV,想把它保存到手机上,但却找不到缓存目录。一阵百度google后,找到了神一样的解决方法,深感linux的强大。。
解决方法来自:Ask Ubuntu
可以写个脚本:
#!/bin/bashpidNum=$(ps ax | grep flash | grep chromium | grep -v "grep" | sed -e 's/^ *//g' -e 's/ *$//g' | tr -s " " | cut -d " " -f 1)procNum=$(ls -l /proc/${pidNum}/fd | grep Flash | tr -s " " | cut -d " " -f 9)filename=$1if [[ "$filename" == "" ]]; then filename=$procNumfiecho "Copying /proc/${pidNum}/fd/${procNum} to '${filename}.flv'"cp /proc/${pidNum}/fd/${procNum} "${filename}.flv"ls -lah "${filename}.flv"
或者来个简单易懂的:
I made a little research and now I can come with the answer that is not so simple as it seems at first sight.
I searched a lot on Google, and almost everything is pointing to the ~/.cache/chromium/Default
folder. It’s the folder where you should find google chrome’s cache files. But there are no big flash video files (like YouTube has), just small ones.
In the end, to answer the question, I came to these conclusions:
- First, you have to open an YouTube video and let it stream from internet.
- In a Terminal (Ctrl+Alt+T), you should get PID of Chromium that use Flash Player plugin. You can use various commands, but
ps
will do just fine:ps ax | grep flash
. Once you have this PID you can find out the name of video file that just was streamed on Youtube:
ls -l /proc/[*PID*]/fd | grep Flash
. You will see as result something like this:lrwx------ 1 [*user*] [*user*] 64 mai 2 09:48 [*video file name - is a number*] -> /tmp/FlashXX4PeKRY (deleted)`
And here is the answer of the question: the last video file streamed on YouTube and cached on the system is:
/proc/[*PID*]/fd/[*video file name - is a number*]
Now, if you want, you should copy them anywhere on the system:
cp /proc/[*PID*]/fd/[*video file name - is a number*] ~/Videos/[*new video file name*].flv
And now you have the last video watched on Youtube in your personal Videos collection.
另外,mac下chrome缓存目录为/Users/账户名/Library/Caches/Google/Chrome/Default/Cache。
- ubuntu下抓flash缓存
- ubuntu下Fiddler抓包
- ubuntu 下 安装 flash
- ubuntu下安装flash
- ubuntu下安装flash
- ubuntu下安装flash
- Ubuntu下flash乱码解决
- ubuntu 下flash乱码解决
- ubuntu 下flash插件安装
- ubuntu 下安装flash player
- ubuntu 下安装flash player
- Ubuntu下安装Flash插件
- ubuntu 下安装flash player
- ubuntu下flash 的安装
- ubuntu下安装adobe Flash
- ubuntu下firefox安装flash
- ubuntu下安装flash player
- ubuntu下如何安装flash
- SQL中Exists的使用
- 开始博客
- 教你怎么测U盘读速与预防冒牌假货
- Scale和Resolution的含义及转换算法
- epoll一个简单模型设计
- ubuntu下抓flash缓存
- 求两个数的最大公约数
- git使用说明
- linux c 一个autotools的最简单例子
- MyEclipse 快捷键
- video4linux(v4l)使用摄像头的实例基础教程
- cocos2d-x介绍和安装(for mac)
- Linux-C学习笔记--单链表的“浮云”操作
- 转载:一个IT人士的个人经历,给迷失方向的朋友