https://blog.csdn.net/u014044812/article/details/78727496
因公司的需求,需要做一个爬取最近上映的电影、列车号、航班号、机场、车站等信息,所以需要我做一个爬虫项目,当然java也可以做爬虫,但是还是没有python这样方便,所以也开始学习Python啦!!!
欲善其事,必先利其器。这里我为大家提供了三种激活方式:
- 授权服务器激活:适合小白,一步到位,但服务器容易被封
- 激活码激活:适合小白,Windows、Mac、Linux都适用且无其他副作用,推荐~
- 破解补丁激活:适合动手能力强的,长期有效,但破解可能会遇到各种问题
本教程对jetbrains全系列可用例:IDEA、WebStorm、phpstorm等
————————更新分割线2018.04.12————————
1.授权服务器激活
优点:方便快捷
缺点:激活的人数多了就容易被封杀,所以可能经常需要去激活
选择License server激活,然后填入:http://im.js.cn:8888
或 http://idea.java.sx/
或http://xidea.online
,然后点Activate激活即可,如果这几个服务器都无法激活,建议使用第二种激活码方式激活。
2.激活码激活
-
优点:Window、Mac、Ubantu都稳定有效,关键是这种激活方式不会产生其他影响
-
缺点:需要修改hosts文件
- 修改hosts文件
将0.0.0.0 account.jetbrains.com添加到hosts文件最后,注意hosts文件无后缀,如果遇到无法修改或权限问题,可以采用覆盖的方法去替换hosts文件
修改后请检查hosts文件是否修改,激活码无法激活的原因99.99%是因为hosts没有修改正确
Windows系统hosts文件路径为:c:windowssystem32driversetc
Mac和Ubantu(Linux)系统hosts文件路径为:/etc - 复制激活码
打开PyCharm选择Activation code激活,然后复制下面的激活码点击激活。此激活码有效期为2019-05-04,大家可以关注微信公众号,在过期之前我会在公众号:裸睡的猪 推送新的激活码哦~
- K71U8DBPNE-eyJsaWNlbnNlSWQiOiJLNzFVOERCUE5FIiwibGljZW5zZWVOYW1lIjoibGFuIHl1IiwiYXNzaWduZWVOYW1lIjoiIiwiYXNzaWduZWVFbWFpbCI6IiIsImxpY2Vuc2VSZXN0cmljdGlvbiI6IkZvciBlZHVjYXRpb25hbCB1c2Ugb25seSIsImNoZWNrQ29uY3VycmVudFVzZSI6ZmFsc2UsInByb2R1Y3RzIjpbeyJjb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J79vvouxKrWg2XV6ShFtPLP+0gPdGq3x9R3+kJbmAm8w+FOdlWqAfJrLvpzMGNeDU14YGXiZ9bVzmIQbwrBA+c/F4tlK/DV07dsNExihqFoibnqDiVNTGombaU2dDup2gwKdL81ua8EIcGNExHe82kjF4zwfadHk3bQVvbfdAwxcDy4xBjs3L4raPLU3yenSzr/OEur1+jfOxnQSmEcMXKXgrAQ9U55gwjcOFKrgOxEdek/Sk1VfOjvS+nuM4eyEruFMfaZHzoQiuw4IqgGc45ohFH0UUyjYcuFxxDSU9lMCv8qdHKm+wnPRb0l9l5vXsCBDuhAGYD6ss+Ga+aDY6f/qXZuUCEUOH3QUNbbCUlviSz6+GiRnt1kA9N2Qachl+2yBfaqUqr8h7Z2gsx5LcIf5kYNsqJ0GavXTVyWh7PYiKX4bs354ZQLUwwa/cG++2+wNWP+HtBhVxMRNTdVhSm38AknZlD+PTAsWGu9GyLmhti2EnVwGybSD2Dxmhxk3IPCkhKAK+pl0eWYGZWG3tJ9mZ7SowcXLWDFAk0lRJnKGFMTggrWjV8GYpw5bq23VmIqqDLgkNzuoog==
3.破解补丁激活
优点:到期时间为2099年,基本为永久啦
缺点:相对服务器激活麻烦些,但是一共只需要3个步骤,其实并不麻烦
-
下载 http://idea.lanyus.com/jar/JetbrainsCrack-2.8-release-enc.jar 并将 JetbrainsCrack-2.8-release-enc.jar 放置到 D盘根目录。
-
在 Pycharm安装目录的in目录下找到
pycharm.exe.vmoptions
和pycharm64.exe.vmoptions
,以文本格式打开并同时在两个文件最后追加-javaagent:D:/JetbrainsCrack-2.8-release-enc.jar
,然后保存。 -
启动 IntelliJ IDEA ,选择激活码激活,输入如下内容激活
ThisCrackLicenseId-{
"licenseId":"11011",
"licenseeName":"微信公众号",
"assigneeName":"裸睡的猪",
"assigneeEmail":"1113449881@qq.com",
"licenseRestriction":"",
"checkConcurrentUse":false,
"products":[
{"code":"II","paidUpTo":"2099-12-31"},
{"code":"DM","paidUpTo":"2099-12-31"},
{"code":"AC","paidUpTo":"2099-12-31"},
{"code":"RS0","paidUpTo":"2099-12-31"},
{"code":"WS","paidUpTo":"2099-12-31"},
{"code":"DPN","paidUpTo":"2099-12-31"},
{"code":"RC","paidUpTo":"2099-12-31"},
{"code":"PS","paidUpTo":"2099-12-31"},
{"code":"DC","paidUpTo":"2099-12-31"},
{"code":"RM","paidUpTo":"2099-12-31"},
{"code":"CL","paidUpTo":"2099-12-31"},
{"code":"PC","paidUpTo":"2099-12-31"}
],
"hash":"2911276/0",
"gracePeriodDays":7,
"autoProlongated":false}
番外篇
1.pycharm官方使用手册
手册入口:https://www.jetbrains.com/help/pycharm/meet-pycharm.html
2.python入门与爬虫项目
这是我自己写的一个爬虫项目,主要功能是从网上爬取一些最近的电影名、列车号、航班号然后做增量修改到文件和Mongodb中去,感兴趣的同学可以看看,有不明白的地方可以在公众号里直接问我,项目入口:http://blog.csdn.net/u014044812/article/details/78894108
3.安装python解释器
很多同学在微信公众号问我怎么项目运行不了,结果是因为大家在安装pycharm后没有为项目选择解释器,如图:
解决办法是:点击File->Setting->Project:your project name->Project Interpreter->右侧小圆圈->Add Local
也可以选择系统解释器,一样的。点击OK之后,如下,过一会就好啦
更新列表
2018.01.19 原链接针对2017.3.3版本失效,现已更新,感谢网友 afgasdg
2018.01.31
有部分同学反映老版本(2016.2.3)出现:cannot obtain ticket from
https://jetlicense.nss.im/ due to connectivity
problem:java.security.cert.CertificateException错误,遇到这样的问题解决方案是:步骤与原文不变只是第2步填入:http://idea.liyang.io,感谢网友 wubian2008
2018.02.03 网友反映从今天起原激活服务器https://jetlicense.nss.im/已失效,目前已经po了新的激活方式,只是比原来多了第一步修改hosts文件。
2018.02.05 原方法(http://50.112.79.106:81)导致很多同学验证失败,最新方法稳定有效,感谢网友 ciel_32shire
2018.04.03 新增服务器激活方式:http://artemis.my.to
2018.04.08 因为原服务器被封杀,更换服务器激活码方式:http://im.js.cn:8888 ,感谢微信粉丝:上帝爱掷骰子
2018.04.12 对原文章进行重构,感谢网站:http://idea.lanyus.com/
2018.05.24 对激活码进行更新,使过期时间延长为2019-05-04,并且更新插件