• 欢迎访问db1024网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏db1024吧

一个可以解决因api抽风出现空目录的OneDrive目录程序:OneList

主机教程 Liam 1年前 (2019-04-28) 10864次浏览 99个评论 扫描二维码
文章目录[隐藏]

说明:目前OneDrive目录程序已经很多了,比如:PyOneOneIndexOLAINDEX。这几个各有特色,都挺好用的,不过有时候api在高峰期抽风的时候,都很容易出现空目录的情况,导致下载会出现问题,这里萌咖sxyazi大佬就历时N天,写了个基于Python3的简约OneDrive目录列表,同时换了一种api来防止因使用人过多导致抽风等问题,稳定性大大的增加,而且使用Redis动态缓存策略,打开目录的速度是相当的快,不过该程序初衷只想安静的做个目录程序,所以是不会增加看视频的功能,如果你想看视频,那就选择开头的3个程序。

截图

一个可以解决因api抽风出现空目录的OneDrive目录程序:OneList

安装

Github地址:https://github.com/0oVicero0/OneList/

说明:该程序不适用OneDrive个人版,且建议使用Debian系统安装,会很快。

1、安装依赖
CenOS 6系统:

#安装EPEL rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm #安装Python3和Redis yum install python34 redis git -y #安装pip3 wget https://bootstrap.pypa.io/get-pip.py python3 get-pip.py #启动Redis service redis start #设置Redis开机自启 chkconfig redis on 

CenOS 7系统:

#安装EPEL rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm #安装Python3和Redis yum install python36 redis git -y #配置Python3软链接 ln -s /usr/bin/python3.6 /usr/bin/python3 #安装pip3 wget https://bootstrap.pypa.io/get-pip.py python3 get-pip.py #启动Redis systemctl start redis #设置Redis开机自启 systemctl enable redis 

Debian/Ubuntu系统:

#安装pip3和Redis apt update apt install python3-pip redis-server git -y 

2、安装OneList

#拉取源码 git clone https://github.com/0oVicero0/OneList.git #安装依赖 cd OneList && pip3 install -r requirements.txt 

获取auth_token
使用浏览器访问该地址→传送门,登录你的OneDrive账号,复制地址栏code=&session之间的参数。

获取refresh_token,在SSH客户端使用命令:

#将下面auth_token替换成你获取到的参数,再使用命令 code="auth_token" wget --no-check-certificate --post-data="client_id=ea2b36f6-b8ad-40be-bc0f-e5e4a4a7d4fa&client_secret=h27zG8pr8BNsLU0JbBh5AOznNS5Of5Y540l/koc7048=&grant_type=authorization_code&resource=https://api.office.com/discovery/&redirect_uri=http://localhost/onedrive-login&code=$code" 'https://login.microsoftonline.com/common/oauth2/token' -qO-

然后复制refresh_token参数后面的字段。

接下来在OneList目录新建config.json配置文件。

nano config.json

将以下内容复制进去:

#将下面refresh_token替换成你获取到的字段 {   "token": "<refresh_token>",   "location_path": "/",   "start_directory": "/",   "threads": 3,   "diff_seconds": 480,   "refresh_seconds": 720,   "metadata_cached_seconds": 768,   "structure_cached_seconds": 840 } 

再使用ctrl+xy保存退出。

开始运行:

gunicorn app:app -b 127.0.0.1:8888 -D

此时访问地址为127.0.0.1:8888,还需要使用域名反代才能访问,如果你要使用ip访问,将运行命令改成0.0.0.0:8888即可。

3、域名反代
安装Caddy

wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubiBackup/doubi/master/caddy_install.sh && chmod +x caddy_install.sh && bash caddy_install.sh #备用地址 wget -N --no-check-certificate https://www.moerats.com/usr/shell/Caddy/caddy_install.sh && chmod +x caddy_install.sh && bash caddy_install.sh 

配置Caddy

#以下全部内容是一个整体,请修改域名后一起复制到SSH运行! echo "www.moerats.com {  gzip  tls [email protected]  proxy / 127.0.0.1:8888 }" > /usr/local/caddy/Caddyfile 

该配置会自动签发SSL,请提前解析域名到VPS服务器。

启动Caddy

/etc/init.d/caddy start 

就可以打开域名进行访问了。

最后如果你没有OneDrive大容量网盘可以申请1年开发者计划,申请地址→传送门;要是你觉得1年不够用,可以前往萌咖杂货店购买→传送门


db1024 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:一个可以解决因api抽风出现空目录的OneDrive目录程序:OneList
喜欢 (0)
关于作者:
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
(99)个小伙伴在吐槽
  1. viagra 50 mg how long does it last how long does viagra take what do viagra pills do
    Joandday2020-09-29 07:35 (16小时前)回复 Windows 7 | Chrome 66.0.3359.181
  2. buy generic 100mg viagra online with paypal how much is too much viagra why viagra lowers the blood pressure
    Charitauxpi2020-09-28 11:18 (2天前)回复 Windows 10 | Chrome 65.0.3325.181
  3. Tamsulosin is usually taken once a day, approximately 30 minutes after the same meal each day. Pfizer announced on Tuesday it s planning to release the non-prescription version in the spring of 2018 under the name Viagra Connect. For the treatment of ED.
    cheap cialis2020-09-27 20:33 (2天前)回复 Windows 10 | Chrome 64.0.3282.140
  4. This doesn t come as a surprise, considering nearly half of all self-identifying women aged 30-50 have experienced a period of low sexual libido. Among all oral drugs used in erectile dysfunction treatment, Viagra Professional features one of the most potent formulas. Prescribed for Erectile Dysfunction, Benign Prostatic Hyperplasia.
    cheap cialis2020-09-27 20:08 (2天前)回复 Windows 10 | Chrome 68.0.3440.75
  5. She was does viagra do to females its Watermelon rinds when levitra lancet-shaped her beseechingly. In 2002, CBS News published a story about the use of Viagra in children's hospitals. In the basket 1 click 50 tablets 80 p.
    cialis2020-09-27 17:46 (2天前)回复 Windows 7 | Chrome 67.0.3396.87
  6. I love what you guys are up too. This sort of clever work and exposure! Keep up the excellent works guys I've incorporated you guys to my blogroll.
    Beckixxpz2020-09-27 17:25 (2天前)回复 Windows 7 | Chrome 67.0.3396.99
  7. They have a little secret that you should not know about others. As Viagra is available from Boots today, we reveal the 10 times you should NEVER take the erectile dysfunction pill. Stay informed about upcoming events, membership enrollment, new destinations, and more.
    cialis2020-09-27 15:04 (2天前)回复 Windows 10 | Chrome 68.0.3440.106
  8. Pfizer has long fought for giving Viagra the status of an over-the-counter drug. Slightly peeking out from under the gate ruffle blouses add a strict line a little softness and femininity. Priapism is rare.
    cialis generic2020-09-27 12:26 (2天前)回复 Windows 10 | Chrome 67.0.3396.87
  9. As long as you can keep it from taking over your life that is, way easier said than done. its really hard. 25 mg 50 mg 100 mg.
    generic cialis2020-09-27 09:26 (3天前)回复 Windows 10 | Chrome 67.0.3396.99
  10. The last 3 years have been problems in bed, now ready to please my wife twice a week. This blog is a comprehensive guide on the natural alternatives to over-the-counter Viagra, which you can try. The product can be taken in the morning, before lunch, after lunch not to combine with food and in the evening.
    generic cialis2020-09-27 06:45 (3天前)回复 Windows 7 | Chrome 67.0.3396.87
  11. A urologist explains how the drug affects your refractory period. Viagra works by increasing blood flow to the penis which helps men get and sustain an erection long enough for sex. He introduced it to the emperor on April 7, 1812.
    cialis buy2020-09-27 04:24 (3天前)回复 Windows 10 | Chrome 67.0.3396.87
  12. Wow, this article is pleasant, my sister is analyzing these things, so I am going to inform her.
    Nickinbsm2020-09-27 03:27 (3天前)回复 Windows 10 | Chrome 67.0.3396.87
  13. cost of viagra per pill what is the cost of viagra in canada when will viagra become generic
    Moirazxvr2020-09-27 01:38 (3天前)回复 Windows 7 | Chrome 66.0.3359.170
  14. We cannot work under these conditions. Tablets covered with film shell, 50 mg 1, 2, 4 or 12 pieces. Cialis vs Viagra What s the difference between them Daily News.
    cialis2020-09-26 22:51 (3天前)回复 Windows 10 | Chrome 68.0.3440.106
  15. Men with severely decreased liver function. The National Institute of Health s NIH website has also stated that DHEA is possibly effective for treating ED. On the What s Hot.
    cialis buy2020-09-26 22:27 (3天前)回复 Windows 7 | Chrome 67.0.3396.99
  16. This is compared with 10 of men who took a placebo. The Fall Feat Lilja Bloom Parov Stelar. Viagra is a treatment for erectile dysfunction.
    cialis buy2020-09-26 20:11 (3天前)回复 Windows 7 | Chrome 66.0.3359.170
  17. The drug for men Crocodile. So, women are getting not quite one whole additional sexually satisfying event potentially without orgasm than on placebo. In fact, he says it probably made his struggles with his own body worse.
    cheap cialis2020-09-26 15:21 (3天前)回复 Windows 8.1 | Chrome 67.0.3396.99
  18. We would like to point out that while the adverse events of Viagra, Cialis and Levitra are the same, these drugs can evoke different effects on different people. A 5 ____ reliable alternative is to order the drug over the Internet and risk purchasing harmful 6 ____. They laughed and went to bed.
    cheap cialis2020-09-26 12:38 (3天前)回复 Windows 10 | Chrome 67.0.3396.62
  19. If there are no contraindications, you will get a prescription and will be able to order Viagra online in the UK or visit a traditional pharmacy to get it. Screens above basins no cup of tea - inside the post-lockdown hairdressers. So taking them together can cause fall the in blood pressure to very low levels.
    buy cialis2020-09-26 08:12 (4天前)回复 Windows XP | Chrome 49.0.2623.112
  20. Treating the underlying condition may resolve the problem. This means that your doctor and insurance company will need to communicate about your prescription before the insurance company will cover the drug. If you find a 50mg tablet is effective, then half a 100mg will be just as good, as will two 25mg tablets.
    cheap cialis2020-09-26 05:48 (4天前)回复 Windows 8.1 | Chrome 67.0.3396.79
  21. It should be remembered that taking such medications, as well as replacing the originals with generics is permissible only after consultation with the doctor and calculating the appropriate individual dosage. Arm hydrocodone and free viagra, boys; were crossin purchase viagra warrener faint by, ter dibranch communicate agin bounded up. Taking Female Viagra with other drugs to treat frigidity is strictly contraindicated.
    generic cialis2020-09-26 05:26 (4天前)回复 Windows 10 | Chrome 64.0.3282.140
  22. That kind of look It is the longest cold eyes Can You Take Viagra And Cialis Together that Longfei has seen so far, the white hair of ice crystals, and the whole body like black crystals are shining with cold light. Generic Vektra software. 3 million men in the UK, according to a 2010 study conducted by Kantar TNS.
    buy cialis2020-09-25 21:44 (4天前)回复 Windows 7 | Chrome 67.0.3396.87
  23. If you are taking certain other medicines your doctor may prescribe a lower starting dose and limit you to one dose of Levitra in a 72-hour 3 days period. For more than 150 years, we have worked to make a difference for all who rely on us. All that is written above - it is quite possible to call the conclusions of an uninterested person.
    cheap cialis2020-09-25 21:20 (4天前)回复 Windows 7 | Chrome 66.0.3359.181
  24. These are their generic name usually the name of the active ingredient of the drug , and one or more different brand names chosen for marketing purposes. Sex lasted much longer, but I felt blood flow not only in the penis, but also in the head. There is no medicine, which is the best for everyone.
    cialis buy2020-09-25 19:05 (4天前)回复 Windows 8.1 | Chrome 65.0.3325.146
  25. In ancient times, theyseem to have been how to cure pme Is Cialis As Good As Viagra pharmacy rx what is the generic name for wellbutrin brand cialis common all over Europe. You ll have low levels of the drug in your body after about 4 hours. Why You Should Have a Prescription.
    cialis buy2020-09-25 18:44 (4天前)回复 Windows 7 | Chrome 67.0.3396.99
  26. For elderly patients, dose adjustment is not required. Moscow and St. Petersburg offer the possibility of courier delivery and self-delivery from the extradition centers, and the order is sent by the postal service to other localities of the country. No doctor's prescription is required to buy female Viagra.
    cialis2020-09-25 13:50 (4天前)回复 Windows 10 | Chrome 64.0.3282.140
  27. 08, it would take about five hours and 20 minutes for the body to metabolize the alcohol. Table Of Contents. Side effects of both Viagra and Cialis are similar.
    buy cialis2020-09-25 11:26 (4天前)回复 Windows 8 | Chrome 68.0.3440.106
  28. Canadian Pharmacy - Generic Viagra Online. All preparations that are included in the products range must have certificates of conformity and pass the system of state control without fail; Canadian Health and Care Mall is fully responsible for the quality of its products and strives to ensure that all customers are satisfied with the quality of the services rendered. The information will be supplemented by reviews of patients and doctors, as well as data on the prices and analogues of Viagra in Russia of domestic and foreign production.
    generic cialis2020-09-25 09:19 (5天前)回复 Windows 10 | Chrome 66.0.3359.170
  29. The main difference between generics and the original drug is the affordable price, as well as a softer effect on the body. For losing weight, gaining muscle, and lowering your risk of prostate cancer. The list of possible side effects is very impressive.
    cialis buy2020-09-23 15:02 (6天前)回复 Windows 10 | Chrome 68.0.3440.106
  30. how much is a prescription for viagra where can i buy viagra what are the side effects of taking viagra
    Justinajiwt2020-09-23 04:46 (7天前)回复 Windows 7 | Chrome 68.0.3440.106
  31. how long can you keep viagra viagra online without a prescription which presidential candidate was the first spokesman for viagra
    Zanennli2020-09-19 13:33 回复 Windows 7 | Chrome 67.0.3396.87
  32. bookmarked!!, I really like your website!
    Christbga2020-09-18 00:55 回复 Windows 10 | Chrome 67.0.3396.87
  33. how long does it take for erection after taking viagra generic for viagra viaonlinebuy.us when to take viagra viagra overnight delivery usa
    Erinurgj2020-09-17 16:27 回复 Windows 7 | Chrome 66.0.3359.170
  34. I am sure this article has touched all the internet visitors, its really really pleasant article on building up new blog.
    Mohammadlbhi2020-09-17 10:54 回复 Windows 10 | Chrome 65.0.3325.181
  35. acheter viagra en france buy viagra with paypal what is generic name for viagra
    Qianarnxu2020-09-17 01:35 回复 Windows 8.1 | Chrome 67.0.3396.99
  36. viagra vs extenze how to pronounce viagra viagra para hombre
    Markusqrmj2020-09-16 06:57 回复 Windows 7 | Chrome 68.0.3440.106
  37. This paragraph will help the internet people for building up new webpage or even a blog from start to end.
    harmoniqhealth.com2020-09-14 16:28 回复 Mac OS X | Safari浏览器 605.1.15
  38. I think that everything wrote made a great deal of sense. But, think about this, what if you were to create a awesome title? I mean, I don't want to tell you how to run your website, but suppose you added a post title that makes people want more? I mean 一个可以解决因api抽风出现空目录的OneDrive目录程序:OneList db1024 db1024 is kinda boring. You might glance at Yahoo's front page and note how they write post headlines to get people interested. You might add a video or a pic or two to grab readers excited about everything've got to say. In my opinion, it would bring your blog a little livelier.
    Cheryle2020-09-14 16:04 回复 Linux | Chrome 66.0.3359.170
  39. viagra pills walmart cheapest generic viagra viaonlinebuy.us sildenafil viagra to cell,usa
    Bethelymbp2020-09-11 07:24 回复 Windows 7 | Chrome 67.0.3396.99
  40. snort viagra viagra batch distillation how does viagra work yahoo
    Jeffereymqju2020-09-11 06:47 回复 Windows 8.1 | Chrome 67.0.3396.79
  41. Do you have any video of that? I'd care to find out some additional information.
    redirectler.top2020-09-10 04:00 回复 Mac OS X | Safari浏览器 605.1.15
  42. I am extremely inspired together with your writing talents and also with the structure on your weblog. Is this a paid topic or did you modify it your self? Either way keep up the nice high quality writing, it's uncommon to look a nice blog like this one these days..
  43. I just like the valuable info you provide in your articles. I will bookmark your blog and check once more right here regularly. I am moderately certain I will be told many new stuff right right here! Best of luck for the following!
    jessica2020-09-09 01:47 回复 Mac OS X | Chrome 67.0.3396.62
  44. I’ve been browsing online more than three hours today, yet I never discovered any interesting article like yours. It is beautiful value sufficient for me. In my opinion, if all site owners and bloggers made just right content material as you probably did, the net shall be a lot more helpful than ever before.
    Fred Papo2020-09-08 23:12 回复 Windows 7 | Firefox浏览器 50.0
  45. Hi there colleagues, its enormous post concerning teachingand entirely defined, keep it up all the time.
    Jonathan2020-09-08 22:55 回复 Linux | Firefox浏览器 54.0
  46. It's going to be ending of mine day, however before finish I am reading this fantastic paragraph to improve my know-how.
    Martha2020-09-08 04:52 回复 Linux | Chrome 66.0.3359.139
  47. Do you have a spam issue on this site; I also am a blogger, and I was wanting to know your situation; we have created some nice practices and we are looking to swap strategies with other folks, why not shoot me an email if interested.
    Steven Ream2020-09-08 02:36 回复 Windows 7 | Chrome 54.0.2840.71
  48. uses of viagra how long does half a viagra keep after opened how long dies it take before viagra starts to work
    Kathizxdu2020-09-07 06:12 回复 Windows 7 | Chrome 67.0.3396.87
  49. constantly i used to read smaller articles or reviews which as well clear their motive, and that is also happening with this post which I am reading at this place.
1 2