useful tools, excel import mysql,swagger】的更多相关文章

http://www.th7.cn/Program/java/201602/765943.shtml------swagger http://blog.csdn.net/csfreebird/article/details/7381971-----maven-plugin http://www.cnblogs.com/liyropt/archive/2012/12/31/2841053.html---gitstatus 方法二,把excel文件生成.sql文件就ok 1.在需要导入的数据最后一列…
需求:爬取“理财大视野”网站的排名.代码.名称.市净率.市盈率等信息,并分别写入txt.excel和mysql 环境:python3.6.5 网站:http://www.dashiyetouzi.com/tools/value/Graham.php 查看html源码:信息在html中以table形式存在,每个股票信息是一行,存放在tr中,单元格信息存放在td中 因此思路为:通过id或者class查找table→查找tr→查找td 第三方库 from bs4 import BeautifulSou…
python2.7爬取豆瓣电影top250并分别写入到TXT,Excel,MySQL数据库 1.任务 爬取豆瓣电影top250 以txt文件保存 以Excel文档保存 将数据录入数据库 2.分析 电影中文名的采集可以查看:http://www.cnblogs.com/carpenterworm/p/6026274.html 电影链接采集:…
How can I import a MySQL dumpfile into my database? I'm using CentOS Linux 5 server. My old hosting provider gave me a data.sql file and I do have access to my Unix / Linux server via ssh. So How do I restore my data using command line over the ssh s…
Springboot+jpa+MySQL+swagger整合 创建一个springboot web项目 <dependencies> <dependency>      <groupId>org.springframework.boot</groupId>      <artifactId>spring-boot-starter-web</artifactId>   </dependency> <!-- 下面两个引入…
1. Scenario description when I use sqoop to import mysql table into hive, I got the following error: // :: WARN hcat.SqoopHCatUtilities: The Sqoop job can fail if types are not assignment compatible // :: WARN hcat.SqoopHCatUtilities: The HCatalog fi…
总结:python2.7下的salt,要把 mysql-python也安装,并不是python3环境,看清,看清 Returners组件,master自动把值写入mysql数据库中,出现的问题 1.本地环境 1.版本信息 [root@localhost ~]# salt-call --versions-report Salt Version: Salt: 2018.3.4 Dependency Versions: cffi: Not Installed cherrypy: Not Install…
#-*- coding:utf-8 -*- # 处理 excel 中的 area 为 Mysql insert 语句 import xlrd, json, codecs, os # data = xlrd.open_workbook('101.xls') data = xlrd.open_workbook('C:\Users\Administrator\Desktop\changanyiyuan.xlsx') # table = data.sheets()[0] table = data.she…
一.xlrd模块: python 对 excel 文件进行读操作 1.下载xlrd 并安装 http://pypi.python.org/pypi/xlrd wget https://pypi.python.org/packages/42/85/25caf967c2d496067489e0bb32df069a8361e1fd96a7e9f35408e56b3aab/xlrd-1.0.0.tar.gz#md5=9a91b688cd4945477ac28187a54f9a3btar -zxf 该压缩…
import sys import xlrd import pymysql import math import json from collections import OrderedDict # json 转换成对像 class JSONObject: def __init__(self, d): self.__dict__ = d # 异常处理 class MyError(Exception): def __init__(self, v): self.value = v def __str…