safari

Ajax爬取动态数据和HTTPS自动默认证书

人盡茶涼 提交于 2020-02-03 21:50:10
Ajax数据爬取   在spider爬取数据的过程中,有些网页的数据是利用Ajax动态加载出来的,所以,在网页源代码中可能不会看到这一部分的数据,因此,我们需要使用另外的方式进行数据多爬取。   以豆瓣电影的网页源码获取为例 https://movie.douban.com/ ,我们查看网页源代码,会发现网页中所包含的数据根本不在源代码中,比如查询囧妈,会显示查询结果为0。这时候我们就要注意他可能是使用Ajax进行动态加载的数据。   F12进入开发者工具,按照下图步骤进行查看   双击第3步骤中的链接,会发现有一些tag标签,最后会发现有一些数据包含其中。   有数据的这些连接就是Ajax动态加载的结果了。下面有一个小例子进行简单的运用。 1 ''' 2 @Description: 爬取异步加载数据——以豆瓣网为例 3 @Version: 1.0 4 @Autor: Montoin Yan 5 @Date: 2020-02-01 18:18:05 6 @LastEditors : Montoin Yan 7 @LastEditTime : 2020-02-03 18:50:01 8 ''' 9 from urllib import parse 10 from urllib.request import urlopen,Request 11 import simplejson 12

Image stretching in flexbox in Safari

ⅰ亾dé卋堺 提交于 2020-02-03 05:17:10
问题 This is only an issue in Safari and looks like a Safari bug to me. Here is a fiddle with a simplified version of the issue. When an image is in a nested flexbox element with a width set and height: auto it is being stretched... the auto height is not working. Does something extra need to be added for this to work in Safari? .container { display: flex; flex-direction: column; } .container section:first-child { display: flex; margin-bottom: 25px; } .container img { width: 125px; height: auto; }

<hr> not displaying at all on IOS Safari and regular android browser.

不打扰是莪最后的温柔 提交于 2020-02-02 16:24:48
问题 So i have a: <div class="divHr"> <hr size="0.01"> </div> .divHr hr{ display: block; width: 100%; border-top: 0.25px dotted #CCCCCC; } If i view it on Chrome / IE / Firefox - additionally it works great on google chrome on mobile devices. If i view the site on Safari (IOS) or the standard Android Browser, the HR doesn't display at all. I have tried not displaying the border using border: 0px; and changing the size="0.01" to 1, but it still doesn't display - so it isn't a problem with borders.

<hr> not displaying at all on IOS Safari and regular android browser.

▼魔方 西西 提交于 2020-02-02 16:23:48
问题 So i have a: <div class="divHr"> <hr size="0.01"> </div> .divHr hr{ display: block; width: 100%; border-top: 0.25px dotted #CCCCCC; } If i view it on Chrome / IE / Firefox - additionally it works great on google chrome on mobile devices. If i view the site on Safari (IOS) or the standard Android Browser, the HR doesn't display at all. I have tried not displaying the border using border: 0px; and changing the size="0.01" to 1, but it still doesn't display - so it isn't a problem with borders.

Why is my CSS filter transition applying early in Safari?

a 夏天 提交于 2020-02-02 12:51:07
问题 I am trying to use css transition for filter and am getting some weird results in Safari, but works as expected in chrome. My CSS where I set the initial filter and transition (working codepen link below): transform: translate3d(-50%,-50%,0) scale(1); filter: blur(0px) contrast(1.1) sepia(0) saturate(1); transition: transform 1s ease-in-out 1s, filter 1s ease-in-out 1s; Safari is applying the filter as soon as the class with different filter atributes is added, but then after the transition

jQuery function doesn't work on Safari

萝らか妹 提交于 2020-02-02 05:59:05
问题 I've one function for sort div by price ASC and DESC. But it doesn't work on Safari . It's ok on Firefox/Chrome. What's the reason? The code (and a fiddle version): function sortByPrice(a,b){ return $(a).find('.cicerone_price').text() > $(b).find('.cicerone_price').text(); } function sortByPriceDesc(a,b){ return $(a).find('.cicerone_price').text() < $(b).find('.cicerone_price').text(); } function reorderEl(el){ var container = $('#tabs'); container.html(''); el.each(function(){ $(this)

How to disable autocomplete in address fields for Safari?

时光毁灭记忆、已成空白 提交于 2020-02-01 17:38:07
问题 I have a form where I've implemented an autosuggest dropdown (via jQueryUI) so that a user can search for a contact in our app and have their information auto-filled. I want autocomplete to be disabled on the form, but Safari (on macOS) is ignoring autocomplete="off" . I have specified autocomplete to be off on the input fields, as well as in the <form> tag. This form is for a physical mailing address for a friend, and Safari is showing matching contacts from Contacts.app... but it is

Safari bug using CSS transition-delay and CSS filters

岁酱吖の 提交于 2020-02-01 09:16:17
问题 I'm having an issue with CSS transition-delay not working correctly in Safari when used to transition CSS filters. It works fine in Chrome but in Safari the animation happens then happens again after the delay time has elapsed. Anyone else seen this before or found a workaround? Thanks in advance. https://codepen.io/selfctrl/pen/GRRZeWe .gray-dog { filter: grayscale(0); transition: filter 0.5s ease-in-out; transition-delay: 1s; } .gray-dog:hover { filter: grayscale(100%); } 来源: https:/

How does Safari know when to prompt user to save password?

这一生的挚爱 提交于 2020-02-01 04:15:17
问题 This related to How does browser know when to prompt user to save password? except mine is specific to Safari. I have a website in which there are two different ways you can log in. The first is the main site in which you have to enter your email, password, and your account's domain. The second way is to actually go to your domain (which is pointing at my server) at which point you're only asked to enter in your email and password. Logging in the second way (two inputs), Safari, Chrome and

How does Safari know when to prompt user to save password?

时光毁灭记忆、已成空白 提交于 2020-02-01 04:14:54
问题 This related to How does browser know when to prompt user to save password? except mine is specific to Safari. I have a website in which there are two different ways you can log in. The first is the main site in which you have to enter your email, password, and your account's domain. The second way is to actually go to your domain (which is pointing at my server) at which point you're only asked to enter in your email and password. Logging in the second way (two inputs), Safari, Chrome and