This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import xml.etree.ElementTree as ET | |
from urllib.parse import urlparse, urljoin | |
visited_sitemaps = set() | |
def normalize_url(url): | |
"""Return only the path and query part of a URL, for cross-host matching.""" | |
parsed = urlparse(url.strip()) | |
return parsed.path + ('?' + parsed.query if parsed.query else '') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ValueConverterGroup : List<IValueConverter>, IValueConverter | |
{ | |
private string[] _parameters; | |
private bool _shouldReverse = false; | |
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) | |
{ | |
ExtractParameters(parameter); | |
if (_shouldReverse) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using Android.App; | |
using Android.Content; | |
using Android.OS; | |
using Android.Runtime; | |
using Android.Views; |