Rocket chat 项目结构

侧边栏文件 :

html
vim packages/rocketchat-ui-sidenav/client/sideNav.html

js
packages/rocketchat-ui-sidenav/client/sidebarItem.html

主页:
packages/rocketchat-ui-master/client/main.html

Home 页面
./packages/rocketchat-ui/client/views/app/home.js

文本设置:
vim packages/rocketchat-lib/server/startup/settings.js

CSS 路径
packages/rocketchat-theme/client/imports/fnkeep/

调用方式:
RocketChat.settings.get(‘Layout_Home_Content’)

Css Layout 调用
RocketChat.Layout
packages/rocketchat-lib/client/lib/Layout.js

URL 路由规则:
client/routes/router.js

Mongo DB 调用
new Mongo.Collection

Xpath 多级解析

selector = Selector(response)
divs = selector.xpath(‘//div[@class=”detials-title-cont”]’)
for div in divs:
h4divs = div.xpath(“./h4/text()”)
for h4div in h4divs:
print “——- “,h4div.extract()
uldivs = div.xpath(‘./following-sibling::ul[1]’)
for uldiv in uldivs:
uladivs = uldiv.xpath(“./li/div/div/a/text()”)
for uladiv in uladivs:
print “parse_tpo_lecture_select txt ——————” ,uladiv.extract()