css selector:

$$(".mainLeft>div>h1")

xpath:

$x(".mainLeft>div>h1")

name = selectText(".mainLeft>div>h1");
xingzhi = selectText(".comTinyDes>tbody>tr:nth-child(1)>td:nth-child(2)>span");
guimo = selectText(".comTinyDes>tbody>tr:nth-child(2)>td:nth-child(2)>span");
wangzhan = selectText(".comTinyDes>tbody>tr:nth-child(3)>td:nth-child(2)>span");
hangye = selectText(".comTinyDes>tbody>tr:nth-child(4)>td:nth-child(2)>span");
dizhi = selectText(".comTinyDes>tbody>tr:nth-child(5)>td:nth-child(2)>span").replace("查看公司地图","");
jianjie = selectText("div[class=part2]").replace("公司介绍","");

dizhi:   $$(".lxfs>ul>li:nth-child(1)>font")
youbian:   $$(".lxfs>ul>li:nth-child(2)>font")
lianxiren:   $$(".lxfs>ul>li:nth-child(3)>font")

youxiang:   $$(".lxfs>ul>li:nth-child(4)>font")

dianhua:   $$(".lxfs>ul>li:nth-child(5)>font")

chuanzheng:   $$(".lxfs>ul>li:nth-child(6)>font")

最新文章

  1. web端功能测试总结(一)
  2. 【java开发系列】—— JDK安装
  3. C++中关于new及内存地址的思考
  4. ISV 和SI 是什么
  5. ASP.NET的SEO:目录
  6. 如何配置LCD背光和LED,调试方法
  7. What is the difference between supervised learning and unsupervised learning?
  8. hibernate篇章三-- hibernate配置文件hibernate.cfg.xml的详细解释
  9. Unity 地形
  10. php 创建文件
  11. WPF MVVM 架构 Step By Step(4)(添加bindings - 完全去掉后台代码)
  12. git上传文件到github
  13. js 对象,数组,字符串,相互转换
  14. js关闭当前页
  15. gitlab 10安装
  16. MySQL8的注意点
  17. IntelliJ IDEA下载及安装,破解
  18. Docker技术入门与实战 第二版-学习笔记-6-仓库
  19. 【CF932F】Escape Through Leaf 启发式合并set维护凸包
  20. AWS系列-Amazon Simple Notification Service (SNS)

热门文章

  1. USACO Prime Palindromes 构造回文数
  2. 同步fifo的verilogHDL设计实例
  3. 使用sqlite保存数据返回主键
  4. Main方法的执行过程(转)
  5. 17.1.1.3 Creating a User for Replication
  6. phantomjs环境搭建已经运行
  7. cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: 解决办法
  8. Qt 释放新建窗口资源
  9. Ibatis调用存储过程实现增删改以及分页查询
  10. [置顶] 深入浅出MongoDB(三)环境搭建