url

Getting HTML Source with Excel-VBA

六月ゝ 毕业季﹏ 提交于 2020-02-05 15:50:15
问题 I would like to direct an excel VBA form to certain URLs, get the HTML source and store that resource in a string. Is this possible, and if so, how do I do it? 回答1: Just an addition to the above response. The question was how to get the HTML source which the stated answer does not actually provide. Compare the contents of oXMLHTTP.responseText with the source code in a browser for URL "http://finance.yahoo.com/q/op?s=T+Options". They do not match and even the returned values are different.

Getting HTML Source with Excel-VBA

拥有回忆 提交于 2020-02-05 15:49:03
问题 I would like to direct an excel VBA form to certain URLs, get the HTML source and store that resource in a string. Is this possible, and if so, how do I do it? 回答1: Just an addition to the above response. The question was how to get the HTML source which the stated answer does not actually provide. Compare the contents of oXMLHTTP.responseText with the source code in a browser for URL "http://finance.yahoo.com/q/op?s=T+Options". They do not match and even the returned values are different.

Java convert JSONObject to URL parameter

我们两清 提交于 2020-02-05 10:37:07
问题 What is the elegant way to convert JSONObject to URL parameters. For example, JSONObject: {stat: {123456: {x: 1, y: 2}, 123457: {z: 5, y: 2}}}} this should be like: stat[123456][x]=1&stat[123456][y]=2&stat[123457][z]=5&stat[123457][y]=2 of course with escaped symbols, and of course JSON object could be more complicated.. Maybe there already exist some mechanisms for that? Thanks, 回答1: Looks like, the only way I found it to make it manually. 回答2: If readability isn't a big concern, you could

Java convert JSONObject to URL parameter

三世轮回 提交于 2020-02-05 10:36:09
问题 What is the elegant way to convert JSONObject to URL parameters. For example, JSONObject: {stat: {123456: {x: 1, y: 2}, 123457: {z: 5, y: 2}}}} this should be like: stat[123456][x]=1&stat[123456][y]=2&stat[123457][z]=5&stat[123457][y]=2 of course with escaped symbols, and of course JSON object could be more complicated.. Maybe there already exist some mechanisms for that? Thanks, 回答1: Looks like, the only way I found it to make it manually. 回答2: If readability isn't a big concern, you could

Java convert JSONObject to URL parameter

≡放荡痞女 提交于 2020-02-05 10:36:07
问题 What is the elegant way to convert JSONObject to URL parameters. For example, JSONObject: {stat: {123456: {x: 1, y: 2}, 123457: {z: 5, y: 2}}}} this should be like: stat[123456][x]=1&stat[123456][y]=2&stat[123457][z]=5&stat[123457][y]=2 of course with escaped symbols, and of course JSON object could be more complicated.. Maybe there already exist some mechanisms for that? Thanks, 回答1: Looks like, the only way I found it to make it manually. 回答2: If readability isn't a big concern, you could

nginx + php-fpm - php works except cannot use $_GET

感情迁移 提交于 2020-02-05 07:02:44
问题 I'm rolling my own mvc framework starting with a front controller, which is working - all requests go through /index.php, which is loading bootstrap files eg router.php. However, $_GET isn't working, so my router.php file isn't working. My URL scheme will simply be /controller/view with .php omitted, but as yet I can't change URLs because I can't $_GET the url to pass to router.php (to load the correct controller and view). I have searched everywhere for solutions and found this similar post

滑动门导航以及微信导航案例

依然范特西╮ 提交于 2020-02-05 04:20:05
滑动门导航 制作导航 ( 使用背景图片制作 ) 核心: 1. 使用背景图片。 2. 导航的内容区域不能设置固定宽度,一定要使用内容将导航撑开。 效果如下 < ! DOCTYPE html > < html lang = "en" > < head > < meta charset = "UTF-8" > < title > Title < / title > < style type = "text/css" > * { margin : 0 ; padding : 0 ; list - style : none ; } . nav { width : 608 px ; height : 35 px ; margin : 100 px auto ; } . nav li { float : left ; } . nav a { height : 35 px ; display : block ; text - decoration : none ; background : url ( "images/blue_r1_c1.png" ) no - repeat ; padding - left : 7 px ; } . nav span { height : 35 px ; line - height : 35 px ; background : url ( "images

include函数解析

痞子三分冷 提交于 2020-02-04 23:48:08
当配置url时可以使用如下 url ( '^$' , app . views . home , name = home ) 但是当url过多时不便与管理。所以在app目录下建立一个urls.py文件然后通过 url ( '^$' , include ( 'app.urls' , namespace = app ) ) 来获得对应app的url这样可扩展性也更好 来源: CSDN 作者: YZBPXX 链接: https://blog.csdn.net/weixin_44195175/article/details/104175719

request和response的认识

给你一囗甜甜゛ 提交于 2020-02-04 23:24:43
爬虫学习 request的几个常用的方法 requests.get() 获取HTML网页的主要方法,对应HTTP的GET requests.post() 向HTML网页提交POST请求的方法,对应HTTP的POST  get方法需要接受一个参数URL,构造一个向目标服务器发送请求的request对象,返回一个包含对象服务器资源的response对象,常用为 response = requests.get("url")  在get方法中也可以加入其它参数params(Python字典类型数据),headers。这里还有很多参数,可以设置请求超时时间timeout等。 import requests url = "https://www.baidu.com" params = { 'wd':'百度贴吧' } headers = { 'User-Agent' : 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; InfoPath.3)' } response = requests.get(url

【Winform】学习笔记(二)—— WebClient异步回调Java后台接口

邮差的信 提交于 2020-02-04 18:03:13
【Winform】学习笔记(二)—— WebClient异步回调Java后台接口 背景: 项目中需要用到一个winform的桌面程序,主要是用winform来做前端界面,数据都是来源于Java后台接口,所以在这里做一个Winform调用Java后台接口的学习笔记。 一、调用的几种方式 常见的几种调用机制有同步调用(最基本的调用方式),异步调用,异步回调。 同步调用: 比如对象A中的方法调用到对象B的方法,这时程序会等待对象B的方法执行完返回结果才会执行对象A的方法。 异步调用: 对象A中的方法调用到对象B的方法,程序并不需要等待对象B的方法返回结果值,直接走下去。这样不会导致程序阻塞。 异步回调: 对象A的方法methodA()中调用对象B的methodB()方法,在对象B的methodB()方法中反过来调用对象A的callBack()方法,这个callBack()方法称为回调函数,这种调用方法称为回调。 二、为什么要用异步调用? 需要获取异步任务的执行结果,但是又不应该让其阻塞(降低效率),即想要高效的获取任务的执行结果。 之前在使用线程池或进程池提交任务时,如果想要处理任务的执行结果则必须调用result函数或是shutdown函数,而它们都是是阻塞的,会等到任务执行完毕后才能继续执行,这样一来在这个等待过程中就无法执行其他任务,降低了效率,所以需要一种方案