Udemy Trick You Must Try (WorkAround) by dillagr

View this thread on steempeak.com
· @dillagr · (edited)
$0.47
Udemy Trick You Must Try (WorkAround)
Sometime back in my early days in SteemIt, I posted a Udemy trick to be able to download the course(s) on another mobile device -- a notebook or netbook, perhaps. In case you missed that post, you may find it here: [Udemy Trick You Must Try](https://steemit.com/how-to/@dillagr/udemy-trick-you-must-try).

In my continued quest to improve myself professionally, I still use this every now and then to download new courses I enroll in. However, in the past week, the script seemed to have stopped working. I did update to the latest Python packages required and pulled the latest code in github. To no avail...

I get the error: ***Udemy Says: 403 Unauthorized...*** 
(as you will see on the screenshot below)

<center>![UDEMYDL.PNG](https://ipfs.busy.org/ipfs/QmeADYQenGCvupcdkBYEPtY5T1JGFWZ7gYCKtkt8865Z8p)</center>
&#160;

To those who are adventurous enough to still want to make this trick work, follow along.

Download Google's Chrome browser. If you already have it, launch the browser and press ***"F12"*** on the keyboard to open the browser's built in Development Tools.

Login to Udemy.

Then on the Development Tools, under ***Network***, go to ***XHR*** and find the ***?sessionState=....*** resource. You will find a ***Request Headers*** to the bottom right of the window (as shown in the screenshot). Pardon the limited view on that screenshot, as I cannot share with you the cookies to my Udemy account.

<center>![UDEMYDLDEV.PNG](https://ipfs.busy.org/ipfs/QmWDkGAUKAmJ8EQ73YjTmGDu6kcWkL8GLNYjua61EY3Q1T)</center>
&#160;

Copy and paste the contents of ***Request Headers*** and save it as a text file, which in this example we will name ***cookies.txt***.

Now execute the download with the same options as before, with the additional ***-k cookies.txt***. (```python3 udemy-dl.py https://www.udemy.com/linux-high-availability-clustering -k cookies.txt```)

This sample below is for the same [Linux High Availability Clustering](http://bit.ly/LinuxHACluster) course.

<center>![UDEMYDLCOOK.PNG](https://ipfs.busy.org/ipfs/QmXtLoj4prhDHEoFZy5ZZwAtnVzzdvhNi7SMmgM9B2x4vp)</center>
&#160;

The download trick still works, albeit a bit more technical this time.

### ***(images and screencaps are mine)***

&#160;<hr/>If you happen to find this post helpful, send me an upvote, or resteem this post, or buy me beer by these wallets. Thanks in advance.

* #Bitcoin (BTC) - 3Kyjg1Wj1PNGN3KhiRprxYvvQpdjC5kT3k
* #Etherium (ETH) - 0x5F168F895C63ccC5FbEf921047bc2b63f6780c3F

### Thanks! (vote for them as witness!)
* @c0ff33a 
* @enginewitty
* @surpassinggoogle

&#160;
<center><a href="https://smartsteem.com?r=dillagr" target="_blank"><img src="https://steemitimages.com/0x0/https://steemitimages.com/DQmYRoKwatvUwCAfuZo4Gbvbr2qhtYLDZfbmBfNw76BnhiC/smartsteem_banner.gif" /></a></center>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 69 others
properties (23)
post_id66,684,606
authordillagr
permlinkudemy-trick-you-must-try-workaround
categoryudemy
json_metadata{"format":"markdown","links":["https:\/\/steemit.com\/how-to\/@dillagr\/udemy-trick-you-must-try","http:\/\/bit.ly\/LinuxHACluster","https:\/\/smartsteem.com?r=dillagr"],"app":"steemit\/0.1","image":["https:\/\/ipfs.busy.org\/ipfs\/QmeADYQenGCvupcdkBYEPtY5T1JGFWZ7gYCKtkt8865Z8p"],"tags":["udemy","workaround","thealliance","philippines","esteem"],"users":["c0ff33a","enginewitty","surpassinggoogle"],"community":"esteem.app"}
created2018-11-28 02:37:00
last_update2018-11-28 08:44:24
depth0
children5
net_rshares899,526,182,314
last_payout2018-12-05 02:37:00
cashout_time1969-12-31 23:59:59
total_payout_value0.373 SBD
curator_payout_value0.101 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length2,799
author_reputation4,200,812,845,890
root_title"Udemy Trick You Must Try (WorkAround)"
beneficiaries
0.
weight1,000
accountesteemapp
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars0
author_curate_reward""
vote details (133)
@upvotebank ·
<center>UpvoteBank</center> | <center>Your upvote bank</center>
------------ | -------------
![__2.jpg](https://steemitimages.com/DQmfDxvv4NLs3knYT7B2mHgE5ArnkheNmDSLydKKTfBwokj/__2.jpg) | This post have been upvoted by the @UpvoteBank service. Want to know more and receive "free" upvotes click [here](https://steemit.com/steemit/@upvotebank/gzsr5aw6)
properties (22)
post_id66,684,701
authorupvotebank
permlink20181128t024054068z
categoryudemy
json_metadata{"tags":["comment"],"app":"steemjs\/comment"}
created2018-11-28 02:40:54
last_update2018-11-28 02:40:54
depth1
children0
net_rshares0
last_payout2018-12-05 02:40:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length354
author_reputation229,673,617,633,863
root_title"Udemy Trick You Must Try (WorkAround)"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@minnowsupport ·
<p>Congratulations!  This post has been upvoted from the communal account, @minnowsupport, by dillagr from the Minnow Support Project. It's a witness project run by aggroed, ausbitbank, teamsteem, someguy123, neoxian, followbtcnews, and netuoso. The goal is to help Steemit grow by supporting Minnows.  Please find us at the <a href="https://discord.gg/HYj4yvw"> Peace, Abundance, and Liberty Network (PALnet) Discord Channel</a>.  It's a completely public and open space to all members of the Steemit community who voluntarily choose to be there.</p> <p>If you would like to delegate to the Minnow Support Project you can do so by clicking on the following links: <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=minnowsupport&amp;vesting_shares=102530.639667%20VESTS">50SP</a>, <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=minnowsupport&amp;vesting_shares=205303.639667%20VESTS">100SP</a>, <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=minnowsupport&amp;vesting_shares=514303.639667%20VESTS">250SP</a>, <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=minnowsupport&amp;vesting_shares=1025303.639667%20VESTS">500SP</a>, <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=minnowsupport&amp;vesting_shares=2053030.639667%20VESTS">1000SP</a>, <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=minnowsupport&amp;vesting_shares=10253030.639667%20VESTS">5000SP</a>. <br><strong>Be sure to leave at least 50SP undelegated on your account.</strong></p>
properties (22)
post_id66,685,176
authorminnowsupport
permlinkre-udemy-trick-you-must-try-workaround-20181128t025707z
categoryudemy
json_metadata{"app":"beem\/0.20.9"}
created2018-11-28 02:57:06
last_update2018-11-28 02:57:06
depth1
children0
net_rshares0
last_payout2018-12-05 02:57:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length1,690
author_reputation104,981,098,086,561
root_title"Udemy Trick You Must Try (WorkAround)"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@esteemapp ·
Thanks for using **eSteem**! <br>Your post has been voted as a part of [eSteem encouragement program](https://steemit.com/esteem/@good-karma/encouragement-program-continues-82eafcd10a299). Keep up the good work! Install [Android](https://play.google.com/store/apps/details?id=com.netsolutions.esteem), [iOS](https://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=1141397898&mt=8) Mobile app or [Windows, Mac, Linux](https://github.com/esteemapp/esteem-surfer/releases) Surfer app, if you haven't already!<br>Learn more: https://esteem.app <br>Join our discord: https://discord.gg/8eHupPq
properties (22)
post_id66,686,014
authoresteemapp
permlinkre-20181127t212650929z
categoryudemy
json_metadata{"tags":["esteem"],"format":"markdown+html","app":"esteem\/1.0-welcome","community":"esteem.app"}
created2018-11-28 03:26:51
last_update2018-11-28 03:26:51
depth1
children0
net_rshares0
last_payout2018-12-05 03:26:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length599
author_reputation396,075,316,369,469
root_title"Udemy Trick You Must Try (WorkAround)"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@dillagr ·
@djimirji up!
👍  
properties (23)
post_id66,701,552
authordillagr
permlinkre-dillagr-udemy-trick-you-must-try-workaround-20181128t120349234z
categoryudemy
json_metadata{"format":"markdown","tags":["udemy"],"community":"busy","links":["\/@djimirji"],"image":[],"app":"busy\/2.5.6","users":["djimirji"]}
created2018-11-28 12:03:54
last_update2018-11-28 12:03:54
depth1
children0
net_rshares735,861,722
last_payout2018-12-05 12:03:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length13
author_reputation4,200,812,845,890
root_title"Udemy Trick You Must Try (WorkAround)"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@steem-ua ·
#### Hi @dillagr!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your **UA** account score is currently 1.896 which ranks you at **#27402** across all Steem accounts.
Your rank has dropped 143 places in the last three days (old rank 27259).

In our last Algorithmic Curation Round, consisting of 240 contributions, your post is ranked at **#204**.
##### Evaluation of your UA score:

* Only a few people are following you, try to convince more people with good work.
* The readers like your work!
* Try to work on user engagement: the more people that interact with you via the comments, the higher your UA score!


**Feel free to join our [@steem-ua Discord server](https://discord.gg/KpBNYGz)**
properties (22)
post_id66,716,907
authorsteem-ua
permlinkre-udemy-trick-you-must-try-workaround-20181128t182910z
categoryudemy
json_metadata{"app":"beem\/0.20.9"}
created2018-11-28 18:29:12
last_update2018-11-28 18:29:12
depth1
children0
net_rshares0
last_payout2018-12-05 18:29:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length753
author_reputation23,203,609,903,979
root_title"Udemy Trick You Must Try (WorkAround)"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000